src/share/classes/java/lang/Class.java
Print this page
*** 2968,2978 ****
private volatile transient T[] enumConstants = null;
/**
* Returns a map from simple name to enum constant. This package-private
* method is used internally by Enum to implement
! * public static <T extends Enum<T>> T valueOf(Class<T>, String)
* efficiently. Note that the map is returned by this method is
* created lazily on first use. Typically it won't ever get created.
*/
Map<String, T> enumConstantDirectory() {
if (enumConstantDirectory == null) {
--- 2968,2978 ----
private volatile transient T[] enumConstants = null;
/**
* Returns a map from simple name to enum constant. This package-private
* method is used internally by Enum to implement
! * {@code public static <T extends Enum<T>> T valueOf(Class<T>, String)}
* efficiently. Note that the map is returned by this method is
* created lazily on first use. Typically it won't ever get created.
*/
Map<String, T> enumConstantDirectory() {
if (enumConstantDirectory == null) {