From 1d78b4eac026478dd9ff5bcec807d7cb885ed31b Mon Sep 17 00:00:00 2001 From: asofold Date: Fri, 31 Oct 2014 11:57:50 +0100 Subject: [PATCH] Update comments on cow mappings (problematic: equals/hashCode). --- .../nocheatplus/utilities/ds/LinkedHashMapCOW.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NCPCommons/src/main/java/fr/neatmonster/nocheatplus/utilities/ds/LinkedHashMapCOW.java b/NCPCommons/src/main/java/fr/neatmonster/nocheatplus/utilities/ds/LinkedHashMapCOW.java index e76beb31..566857f8 100644 --- a/NCPCommons/src/main/java/fr/neatmonster/nocheatplus/utilities/ds/LinkedHashMapCOW.java +++ b/NCPCommons/src/main/java/fr/neatmonster/nocheatplus/utilities/ds/LinkedHashMapCOW.java @@ -9,7 +9,9 @@ import java.util.Set; /** * More cows, more fun: Copy on write for a LinkedHashMap (optimized for fast reading from any thread). *
- * This does not allow access-ordered maps, use Collections.synchronizedMap(LinkedHashMap...) for that case. + * Shortcomings:
+ *
  • This does not allow access-ordered maps, use Collections.synchronizedMap(LinkedHashMap...) for that case.
  • + *
  • Behavior of equals and hashCode could be problematic, because they have not been overridden, but in fact should be processed on copies of this map.
  • * @author dev1mc * */