diff --git a/src/builder/resources/speiger/assets/collections/templates/maps/impl/misc/EnumMap.template b/src/builder/resources/speiger/assets/collections/templates/maps/impl/misc/EnumMap.template index 3b05849..5090dbb 100644 --- a/src/builder/resources/speiger/assets/collections/templates/maps/impl/misc/EnumMap.template +++ b/src/builder/resources/speiger/assets/collections/templates/maps/impl/misc/EnumMap.template @@ -213,11 +213,12 @@ public class ENUM_MAP KEY_ENUM_VALUE_GENERIC_TYPE extends ABSTRACT_MAP KEY_VALUE onNodeRemoved(index); } protected boolean isSet(int index) { return (present[index >> 6] & (1L << index)) != 0; } - private static > K[] getKeyUniverse(Class keyType) { + + private static > K[] getKeyUniverse(Class keyType) { #if UNSAVE_ENUM - return keyType.getEnumConstants(); + return SharedSecrets.getJavaLangAccess().getEnumConstantsShared(keyType); #else - return SharedSecrets.getJavaLangAccess().getEnumConstantsShared(keyType); + return keyType.getEnumConstants(); #endif }