Skip to content

Commit 891d8cf

Browse files
committed
8319986: Invalid/inconsistent description and example for DateFormat
Reviewed-by: joehw, rriggs, jlu, iris, lancea
1 parent 536b1ce commit 891d8cf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/java.base/share/classes/java/text/DateFormat.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,14 @@
119119
* different options to these factory methods to control the length of the
120120
* result; from {@link #SHORT} to {@link #MEDIUM} to {@link #LONG} to {@link #FULL}. The exact result depends
121121
* on the locale, but generally:
122-
* <ul><li>{@link #SHORT} is completely numeric, such as {@code 12.13.52} or {@code 3:30pm}
122+
* <ul><li>{@link #SHORT} is the shortest and mainly numeric, such as {@code 12.13.52} or {@code 3:30pm}
123123
* <li>{@link #MEDIUM} is longer, such as {@code Jan 12, 1952}
124-
* <li>{@link #LONG} is longer, such as {@code January 12, 1952} or {@code 3:30:32pm}
125-
* <li>{@link #FULL} is pretty completely specified, such as
124+
* <li>{@link #LONG} is even longer, such as {@code January 12, 1952} or {@code 3:30:32pm}
125+
* <li>{@link #FULL} is the longest, such as
126126
* {@code Tuesday, April 12, 1952 AD or 3:30:42pm PST}.
127127
* </ul>
128+
* For those fields with text, typically abbreviated text form is used with {@link #MEDIUM} option,
129+
* and full text form is used with {@link #LONG} and {@link #FULL} options.
128130
*
129131
* <p>You can also set the time zone on the format if you wish.
130132
* If you want even more control over the format or parsing,

0 commit comments

Comments
 (0)