From 9e07aedcc31dcc4c3933b1a200a8e024c7d0a6f5 Mon Sep 17 00:00:00 2001 From: Akiranya Date: Sun, 26 Sep 2021 11:44:49 +0800 Subject: [PATCH] Added more javadoc --- .../ecoenchants/enchantments/util/WeakMetadata.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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<>(); }