Got the If switched up.

This commit is contained in:
Speiger 2021-06-22 19:49:32 +02:00
parent 500514fb20
commit 5ea1e3c358
1 changed files with 4 additions and 3 deletions

View File

@ -213,11 +213,12 @@ public class ENUM_MAP KEY_ENUM_VALUE_GENERIC_TYPE extends ABSTRACT_MAP KEY_VALUE
onNodeRemoved(index); onNodeRemoved(index);
} }
protected boolean isSet(int index) { return (present[index >> 6] & (1L << index)) != 0; } protected boolean isSet(int index) { return (present[index >> 6] & (1L << index)) != 0; }
private static <K extends Enum<K>> K[] getKeyUniverse(Class<K> keyType) { private static <K extends Enum<K>> K[] getKeyUniverse(Class<K> keyType) {
#if UNSAVE_ENUM #if UNSAVE_ENUM
return keyType.getEnumConstants();
#else
return SharedSecrets.getJavaLangAccess().getEnumConstantsShared(keyType); return SharedSecrets.getJavaLangAccess().getEnumConstantsShared(keyType);
#else
return keyType.getEnumConstants();
#endif #endif
} }