Author: rdonkin
Date: Mon Nov 21 12:36:21 2005
New Revision: 347973

URL: http://svn.apache.org/viewcvs?rev=347973&view=rev
Log:
Added notes about concurrent access to LRUMap.

Modified:
    jakarta/commons/proper/collections/trunk/project.xml
    
jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/LRUMap.java

Modified: jakarta/commons/proper/collections/trunk/project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/collections/trunk/project.xml?rev=347973&r1=347972&r2=347973&view=diff
==============================================================================
--- jakarta/commons/proper/collections/trunk/project.xml (original)
+++ jakarta/commons/proper/collections/trunk/project.xml Mon Nov 21 12:36:21 
2005
@@ -129,6 +129,10 @@
       <email></email>
       <organization></organization>
     </developer>
+    <developer>
+      <name>Robert Burrell Donkin</name>
+      <id>rdonkin</id>
+    </developer>
   </developers>
   
   <contributors>

Modified: 
jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/LRUMap.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/LRUMap.java?rev=347973&r1=347972&r2=347973&view=diff
==============================================================================
--- 
jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/LRUMap.java
 (original)
+++ 
jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/LRUMap.java
 Mon Nov 21 12:36:21 2005
@@ -39,6 +39,11 @@
  * <p>
  * All the available iterators can be reset back to the start by casting to
  * <code>ResettableIterator</code> and calling <code>reset()</code>.
+ * <p>
+ * <strong>Note</strong> as is the usual convention, this map must be protected
+ * from concurrent access by multiple threads for example by calling 
+ * <code>Collections.synchronizeMap</code>. This class may throw 
+ * <code>NullPointerException</code>'s when accessed by concurrent threads.
  * 
  * @since Commons Collections 3.0 (previously in main package v1.0)
  * @version $Revision$ $Date$



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to