diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/WeakMetadata.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/WeakMetadata.java index 365ffa4a..0e4b89dd 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/WeakMetadata.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/WeakMetadata.java @@ -6,6 +6,8 @@ import java.util.Map; import java.util.WeakHashMap; /** + * Weak metadata to prevent memory leaks. + *

* Author: Akiranya (Nailm) */ public class WeakMetadata { @@ -13,16 +15,16 @@ public class WeakMetadata { /** * Summoned entities by the summoning enchantments. *

- * K: summoned entity - * V: the target of the summoned entity + *

K: summoned entity + *

V: the target of the summoned entity */ public final static Map SUMMONED_ENTITY_MEMORY = new WeakHashMap<>(); /** * Victim entities which the summoned entities target at. *

- * K: entity which the summoned entities target at - * V: nothing (passing null is fine) + *

K: entity which the summoned entities target at + *

V: nothing (passing null is fine) */ public final static Map SUMMONED_ENTITY_TARGET = new WeakHashMap<>(); }