From 52b2c0912b32f00c35cdf5e0d28da84893261a52 Mon Sep 17 00:00:00 2001 From: Nils Bandener Date: Fri, 12 Jul 2024 20:30:02 +0200 Subject: [PATCH] Bugfix Signed-off-by: Nils Bandener --- .../org/opensearch/security/securityconf/impl/CType.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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) {