mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6218123: (cal) API: Spec for GregorianCalendar constructors and Calendar getInstance is inconsistent.
Reviewed-by: naoto
This commit is contained in:
parent
a43a17c8ea
commit
42965d390c
2 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue