jdk/src/java.base/share/classes/sun/util/calendar/CalendarSystem.java
changeset 32649 2ee9017c7597
parent 27286 8299f6b0c5fc
child 34774 03b4e6dc367b
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
    74 
    74 
    75 public abstract class CalendarSystem {
    75 public abstract class CalendarSystem {
    76 
    76 
    77     /////////////////////// Calendar Factory Methods /////////////////////////
    77     /////////////////////// Calendar Factory Methods /////////////////////////
    78 
    78 
    79     private volatile static boolean initialized = false;
    79     private static volatile boolean initialized = false;
    80 
    80 
    81     // Map of calendar names and calendar class names
    81     // Map of calendar names and calendar class names
    82     private static ConcurrentMap<String, String> names;
    82     private static ConcurrentMap<String, String> names;
    83 
    83 
    84     // Map of calendar names and CalendarSystem instances
    84     // Map of calendar names and CalendarSystem instances
   116                 initialized = true;
   116                 initialized = true;
   117             }
   117             }
   118         }
   118         }
   119     }
   119     }
   120 
   120 
   121     private final static Gregorian GREGORIAN_INSTANCE = new Gregorian();
   121     private static final Gregorian GREGORIAN_INSTANCE = new Gregorian();
   122 
   122 
   123     /**
   123     /**
   124      * Returns the singleton instance of the <code>Gregorian</code>
   124      * Returns the singleton instance of the <code>Gregorian</code>
   125      * calendar system.
   125      * calendar system.
   126      *
   126      *