From e80bb1adca4ada18281eb0e07083214a3f658f71 Mon Sep 17 00:00:00 2001 From: Gero Date: Sat, 2 Oct 2021 20:08:30 +0200 Subject: [PATCH] Fix CME in CraftPersistentDataTypeRegistry --- .../persistence/CraftPersistentDataTypeRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/persistence/CraftPersistentDataTypeRegistry.java b/paper-server/src/main/java/org/bukkit/craftbukkit/persistence/CraftPersistentDataTypeRegistry.java index 71dc4a2285..20c53aac0a 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/persistence/CraftPersistentDataTypeRegistry.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/persistence/CraftPersistentDataTypeRegistry.java @@ -121,7 +121,7 @@ public final class CraftPersistentDataTypeRegistry { } } - private final Map adapters = new HashMap<>(); + private final Map adapters = new java.util.concurrent.ConcurrentHashMap<>(); // Paper - Replace HashMap with ConcurrentHashMap to avoid CME /** * Creates a suitable adapter instance for the primitive class type.