mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8319628: DateFormat does not mention IllegalArgumentException for invalid style args
Reviewed-by: naoto
This commit is contained in:
parent
d725b73df0
commit
d5abe49670
1 changed files with 6 additions and 4 deletions
|
@ -61,10 +61,12 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* normalization. The date is represented as a {@code Date} object or
|
* normalization. The date is represented as a {@code Date} object or
|
||||||
* as the milliseconds since January 1, 1970, 00:00:00 GMT.
|
* as the milliseconds since January 1, 1970, 00:00:00 GMT.
|
||||||
*
|
*
|
||||||
* <p>{@code DateFormat} provides many class methods for obtaining default date/time
|
* <p>{@code DateFormat} provides static factory methods for obtaining default date/time
|
||||||
* formatters based on the default or a given locale and a number of formatting
|
* formatters based on the default or a given locale and a number of formatting
|
||||||
* styles. The formatting styles include {@link #FULL}, {@link #LONG}, {@link #MEDIUM}, and {@link #SHORT}. More
|
* styles. The formatting styles include {@link #FULL}, {@link #LONG}, {@link #MEDIUM}, and {@link #SHORT}.
|
||||||
* detail and examples of using these styles are provided in the method
|
* For any of the factory methods with the parameter <i>style</i>, an {@code
|
||||||
|
* IllegalArgumentException} will be thrown if <i>style</i> is not equal to any
|
||||||
|
* of the defined formatting styles. More detail and examples of using these styles are provided in the method
|
||||||
* descriptions.
|
* descriptions.
|
||||||
*
|
*
|
||||||
* <p>{@code DateFormat} helps you to format and parse dates for any locale.
|
* <p>{@code DateFormat} helps you to format and parse dates for any locale.
|
||||||
|
@ -162,7 +164,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* {@code null}, but any subsequent operations on the same instance may throw
|
* {@code null}, but any subsequent operations on the same instance may throw
|
||||||
* {@code NullPointerException}.</li>
|
* {@code NullPointerException}.</li>
|
||||||
* <li>The {@link #getCalendar()}, {@link #getNumberFormat()} and
|
* <li>The {@link #getCalendar()}, {@link #getNumberFormat()} and
|
||||||
* {@link getTimeZone()} methods may return {@code null}, if the respective
|
* {@link #getTimeZone()} methods may return {@code null}, if the respective
|
||||||
* values of this instance is set to {@code null} through the corresponding
|
* values of this instance is set to {@code null} through the corresponding
|
||||||
* setter methods. For Example: {@link #getTimeZone()} may return {@code null},
|
* setter methods. For Example: {@link #getTimeZone()} may return {@code null},
|
||||||
* if the {@code TimeZone} value of this instance is set as
|
* if the {@code TimeZone} value of this instance is set as
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue