Title: [2142] trunk/xstream/src/java/com/thoughtworks/xstream/core/util/WeakCache.java: Add reminder for WeakHashMap regarding thread-safety.
Revision
2142
Author
joehni
Date
2013-09-26 16:02:44 -0500 (Thu, 26 Sep 2013)

Log Message

Add reminder for WeakHashMap regarding thread-safety.

Modified Paths


Diff

Modified: trunk/xstream/src/java/com/thoughtworks/xstream/core/util/WeakCache.java (2141 => 2142)


--- trunk/xstream/src/java/com/thoughtworks/xstream/core/util/WeakCache.java	2013-09-26 21:01:51 UTC (rev 2141)
+++ trunk/xstream/src/java/com/thoughtworks/xstream/core/util/WeakCache.java	2013-09-26 21:02:44 UTC (rev 2142)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011 XStream Committers.
+ * Copyright (C) 2011, 2013 XStream Committers.
  * All rights reserved.
  *
  * The software in this package is published under the terms of the BSD
@@ -23,7 +23,7 @@
 
 
 /**
- * A HashMap implementation with weak references values and by default for the key. WHen the
+ * A HashMap implementation with weak references values and by default for the key. When the
  * value is garbage collected, the key will also vanish from the map.
  * 
  * @author Jörg Schaible
@@ -36,6 +36,8 @@
     /**
      * Construct a WeakCache with weak keys.
      * 
+     * <p>Note, that the internally used WeakHashMap is <b>not</b> thread-safe.</p>
+     * 
      * @param map the map to use
      * @since 1.4
      */

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to