jdk/src/share/classes/java/lang/Class.java
changeset 14014 da3648e13e67
parent 13589 da4cb574f4a6
child 16087 89b565a23835
child 14342 8435a30053c1
equal deleted inserted replaced
14013:10f55dd791e1 14014:da3648e13e67
  2968     private volatile transient T[] enumConstants = null;
  2968     private volatile transient T[] enumConstants = null;
  2969 
  2969 
  2970     /**
  2970     /**
  2971      * Returns a map from simple name to enum constant.  This package-private
  2971      * Returns a map from simple name to enum constant.  This package-private
  2972      * method is used internally by Enum to implement
  2972      * method is used internally by Enum to implement
  2973      *     public static <T extends Enum<T>> T valueOf(Class<T>, String)
  2973      * {@code public static <T extends Enum<T>> T valueOf(Class<T>, String)}
  2974      * efficiently.  Note that the map is returned by this method is
  2974      * efficiently.  Note that the map is returned by this method is
  2975      * created lazily on first use.  Typically it won't ever get created.
  2975      * created lazily on first use.  Typically it won't ever get created.
  2976      */
  2976      */
  2977     Map<String, T> enumConstantDirectory() {
  2977     Map<String, T> enumConstantDirectory() {
  2978         if (enumConstantDirectory == null) {
  2978         if (enumConstantDirectory == null) {