Fixed some typos in JavaDoc.