6218123: (cal) API: Spec for GregorianCalendar constructors and Calendar getInstance is inconsistent.

Reviewed-by: naoto
This commit is contained in:
Justin Lu 2023-04-10 21:46:31 +00:00 committed by Naoto Sato
parent a43a17c8ea
commit 42965d390c
2 changed files with 6 additions and 0 deletions

View file

@ -1632,6 +1632,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
*
* @param zone the time zone to use
* @return a Calendar.
* @throws NullPointerException if {@code zone} is {@code null}
*/
public static Calendar getInstance(TimeZone zone)
{
@ -1649,6 +1650,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
*
* @param aLocale the locale for the week data
* @return a Calendar.
* @throws NullPointerException if {@code aLocale} is {@code null}
*/
public static Calendar getInstance(Locale aLocale)
{
@ -1663,6 +1665,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
* @param zone the time zone to use
* @param aLocale the locale for the week data
* @return a Calendar.
* @throws NullPointerException if {@code zone} or {@code aLocale} is {@code null}
*/
public static Calendar getInstance(TimeZone zone,
Locale aLocale)