Skip to content

Commit

Permalink
8319986: Invalid/inconsistent description and example for DateFormat
Browse files Browse the repository at this point in the history
Reviewed-by: joehw, rriggs, jlu, iris, lancea
  • Loading branch information
naotoj committed Nov 15, 2023
1 parent 536b1ce commit 891d8cf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/java.base/share/classes/java/text/DateFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@
* different options to these factory methods to control the length of the
* result; from {@link #SHORT} to {@link #MEDIUM} to {@link #LONG} to {@link #FULL}. The exact result depends
* on the locale, but generally:
* <ul><li>{@link #SHORT} is completely numeric, such as {@code 12.13.52} or {@code 3:30pm}
* <ul><li>{@link #SHORT} is the shortest and mainly numeric, such as {@code 12.13.52} or {@code 3:30pm}
* <li>{@link #MEDIUM} is longer, such as {@code Jan 12, 1952}
* <li>{@link #LONG} is longer, such as {@code January 12, 1952} or {@code 3:30:32pm}
* <li>{@link #FULL} is pretty completely specified, such as
* <li>{@link #LONG} is even longer, such as {@code January 12, 1952} or {@code 3:30:32pm}
* <li>{@link #FULL} is the longest, such as
* {@code Tuesday, April 12, 1952 AD or 3:30:42pm PST}.
* </ul>
* For those fields with text, typically abbreviated text form is used with {@link #MEDIUM} option,
* and full text form is used with {@link #LONG} and {@link #FULL} options.
*
* <p>You can also set the time zone on the format if you wish.
* If you want even more control over the format or parsing,
Expand Down

1 comment on commit 891d8cf

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.