diff --git a/src/main/java/org/opensearch/security/securityconf/impl/CType.java b/src/main/java/org/opensearch/security/securityconf/impl/CType.java index 3a70c42c2e..dad18c9361 100644 --- a/src/main/java/org/opensearch/security/securityconf/impl/CType.java +++ b/src/main/java/org/opensearch/security/securityconf/impl/CType.java @@ -58,6 +58,10 @@ public class CType implements Comparable> { + private final static Set> allSet = new HashSet<>(); + private static Map> nameToInstanceMap = new HashMap<>(); + private static Map> ordToInstanceMap = new HashMap<>(); + public static final CType ACTIONGROUPS = new CType<>( "action_groups", ActionGroupsV7.class, @@ -106,11 +110,6 @@ public class CType implements Comparable> { private final OldConfigVersion[] oldConfigVersions; private final int ord; - private final static Set> allSet = new HashSet<>(); - - private static Map> nameToInstanceMap = new HashMap<>(); - private static Map> ordToInstanceMap = new HashMap<>(); - @SafeVarargs @SuppressWarnings("varargs") private CType(String name, Class configClass, int ord, boolean emptyIfMissing, OldConfigVersion... oldConfigVersions) {