commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r347973 - in /jakarta/commons/proper/collections/trunk: project.xml src/java/org/apache/commons/collections/map/LRUMap.java
Date Mon, 21 Nov 2005 20:36:29 GMT
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message