# HG changeset patch # User rriggs # Date 1391193751 18000 # Node ID c9ef7086f8ffb4f2366594a3fbbb2274c4d31934 # Parent 9186623f704571b08597ffc59440d23607aec1d8 8032221: Typo in java.util.date Summary: trancate -> truncate; updated html and to use {@code ...} Reviewed-by: darcy, lancea diff -r 9186623f7045 -r c9ef7086f8ff jdk/src/share/classes/java/util/Date.java --- a/jdk/src/share/classes/java/util/Date.java Fri Jan 31 18:32:07 2014 +0000 +++ b/jdk/src/share/classes/java/util/Date.java Fri Jan 31 13:42:31 2014 -0500 @@ -41,20 +41,20 @@ import sun.util.calendar.ZoneInfo; /** - * The class Date represents a specific instant + * The class {@code Date} represents a specific instant * in time, with millisecond precision. *

- * Prior to JDK 1.1, the class Date had two additional + * Prior to JDK 1.1, the class {@code Date} had two additional * functions. It allowed the interpretation of dates as year, month, day, hour, * minute, and second values. It also allowed the formatting and parsing * of date strings. Unfortunately, the API for these functions was not * amenable to internationalization. As of JDK 1.1, the - * Calendar class should be used to convert between dates and time - * fields and the DateFormat class should be used to format and + * {@code Calendar} class should be used to convert between dates and time + * fields and the {@code DateFormat} class should be used to format and * parse date strings. - * The corresponding methods in Date are deprecated. + * The corresponding methods in {@code Date} are deprecated. *

- * Although the Date class is intended to reflect + * Although the {@code Date} class is intended to reflect * coordinated universal time (UTC), it may not do so exactly, * depending on the host environment of the Java Virtual Machine. * Nearly all modern operating systems assume that 1 day = @@ -93,12 +93,12 @@ * http://tycho.usno.navy.mil/systime.html * *

- * In all methods of class Date that accept or return + * In all methods of class {@code Date} that accept or return * year, month, date, hours, minutes, and seconds values, the * following representations are used: *