equal
deleted
inserted
replaced
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) { |