< prev index next >

src/java.base/share/classes/java/util/TimeZone.java

Print this page
rev 56290 : 8230648: Replace @exception tag with @throws in java.base
Summary: Minor coding style update of javadoc tag in any file in java.base
Reviewed-by: prappo, lancea

*** 327,337 **** * getDisplayName(false, {@link #LONG}, locale) * </pre></blockquote> * * @param locale the locale in which to supply the display name. * @return the human-readable name of this time zone in the given locale. ! * @exception NullPointerException if {@code locale} is {@code null}. * @since 1.2 * @see #getDisplayName(boolean, int, Locale) */ public final String getDisplayName(Locale locale) { return getDisplayName(false, LONG, locale); --- 327,337 ---- * getDisplayName(false, {@link #LONG}, locale) * </pre></blockquote> * * @param locale the locale in which to supply the display name. * @return the human-readable name of this time zone in the given locale. ! * @throws NullPointerException if {@code locale} is {@code null}. * @since 1.2 * @see #getDisplayName(boolean, int, Locale) */ public final String getDisplayName(Locale locale) { return getDisplayName(false, LONG, locale);
*** 352,362 **** * * @param daylight {@code true} specifying a Daylight Saving Time name, or * {@code false} specifying a Standard Time name * @param style either {@link #LONG} or {@link #SHORT} * @return the human-readable name of this time zone in the default locale. ! * @exception IllegalArgumentException if {@code style} is invalid. * @since 1.2 * @see #getDisplayName(boolean, int, Locale) * @see Locale#getDefault(Locale.Category) * @see Locale.Category * @see java.text.DateFormatSymbols#getZoneStrings() --- 352,362 ---- * * @param daylight {@code true} specifying a Daylight Saving Time name, or * {@code false} specifying a Standard Time name * @param style either {@link #LONG} or {@link #SHORT} * @return the human-readable name of this time zone in the default locale. ! * @throws IllegalArgumentException if {@code style} is invalid. * @since 1.2 * @see #getDisplayName(boolean, int, Locale) * @see Locale#getDefault(Locale.Category) * @see Locale.Category * @see java.text.DateFormatSymbols#getZoneStrings()
*** 387,398 **** * @param daylight {@code true} specifying a Daylight Saving Time name, or * {@code false} specifying a Standard Time name * @param style either {@link #LONG} or {@link #SHORT} * @param locale the locale in which to supply the display name. * @return the human-readable name of this time zone in the given locale. ! * @exception IllegalArgumentException if {@code style} is invalid. ! * @exception NullPointerException if {@code locale} is {@code null}. * @since 1.2 * @see java.text.DateFormatSymbols#getZoneStrings() */ public String getDisplayName(boolean daylight, int style, Locale locale) { if (style != SHORT && style != LONG) { --- 387,398 ---- * @param daylight {@code true} specifying a Daylight Saving Time name, or * {@code false} specifying a Standard Time name * @param style either {@link #LONG} or {@link #SHORT} * @param locale the locale in which to supply the display name. * @return the human-readable name of this time zone in the given locale. ! * @throws IllegalArgumentException if {@code style} is invalid. ! * @throws NullPointerException if {@code locale} is {@code null}. * @since 1.2 * @see java.text.DateFormatSymbols#getZoneStrings() */ public String getDisplayName(boolean daylight, int style, Locale locale) { if (style != SHORT && style != LONG) {
< prev index next >