Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Bandener <[email protected]>
  • Loading branch information
nibix committed Jul 12, 2024
1 parent 6bb6de4 commit 52b2c09
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@

public class CType<T> implements Comparable<CType<?>> {

private final static Set<CType<?>> allSet = new HashSet<>();
private static Map<String, CType<?>> nameToInstanceMap = new HashMap<>();
private static Map<Integer, CType<?>> ordToInstanceMap = new HashMap<>();

public static final CType<ActionGroupsV7> ACTIONGROUPS = new CType<>(
"action_groups",
ActionGroupsV7.class,
Expand Down Expand Up @@ -106,11 +110,6 @@ public class CType<T> implements Comparable<CType<?>> {
private final OldConfigVersion<?, T>[] oldConfigVersions;
private final int ord;

private final static Set<CType<?>> allSet = new HashSet<>();

private static Map<String, CType<?>> nameToInstanceMap = new HashMap<>();
private static Map<Integer, CType<?>> ordToInstanceMap = new HashMap<>();

@SafeVarargs
@SuppressWarnings("varargs")
private CType(String name, Class<T> configClass, int ord, boolean emptyIfMissing, OldConfigVersion<?, T>... oldConfigVersions) {
Expand Down

0 comments on commit 52b2c09

Please sign in to comment.