jdk/src/share/classes/java/util/GregorianCalendar.java
changeset 16010 2727163b5df5
parent 15658 55b829ca2334
child 16852 60207b2b4b42
equal deleted inserted replaced
16009:c63e8173a808 16010:2727163b5df5
   585 // Constructors
   585 // Constructors
   586 ///////////////
   586 ///////////////
   587 
   587 
   588     /**
   588     /**
   589      * Constructs a default <code>GregorianCalendar</code> using the current time
   589      * Constructs a default <code>GregorianCalendar</code> using the current time
   590      * in the default time zone with the default locale.
   590      * in the default time zone with the default
       
   591      * {@link Locale.Category#FORMAT FORMAT} locale.
   591      */
   592      */
   592     public GregorianCalendar() {
   593     public GregorianCalendar() {
   593         this(TimeZone.getDefaultRef(), Locale.getDefault(Locale.Category.FORMAT));
   594         this(TimeZone.getDefaultRef(), Locale.getDefault(Locale.Category.FORMAT));
   594         setZoneShared(true);
   595         setZoneShared(true);
   595     }
   596     }
   596 
   597 
   597     /**
   598     /**
   598      * Constructs a <code>GregorianCalendar</code> based on the current time
   599      * Constructs a <code>GregorianCalendar</code> based on the current time
   599      * in the given time zone with the default locale.
   600      * in the given time zone with the default
       
   601      * {@link Locale.Category#FORMAT FORMAT} locale.
   600      *
   602      *
   601      * @param zone the given time zone.
   603      * @param zone the given time zone.
   602      */
   604      */
   603     public GregorianCalendar(TimeZone zone) {
   605     public GregorianCalendar(TimeZone zone) {
   604         this(zone, Locale.getDefault(Locale.Category.FORMAT));
   606         this(zone, Locale.getDefault(Locale.Category.FORMAT));