You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2002/11/24 18:30:15 UTC

cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections SoftRefHashMap.java

scolebourne    2002/11/24 09:30:15

  Modified:    collections/src/java/org/apache/commons/collections
                        SoftRefHashMap.java
  Log:
  Fix Concurrent Modification bug in purge(), from Eduardo Francos
  
  Revision  Changes    Path
  1.7       +4 -4      jakarta-commons/collections/src/java/org/apache/commons/collections/SoftRefHashMap.java
  
  Index: SoftRefHashMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/SoftRefHashMap.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SoftRefHashMap.java	12 Oct 2002 22:15:18 -0000	1.6
  +++ SoftRefHashMap.java	24 Nov 2002 17:30:15 -0000	1.7
  @@ -119,7 +119,7 @@
               Object key = (Object) i.next();
               Reference ref = (Reference) map.get( key );
               if ( ref.get() == null ) {
  -                map.remove( key );
  +                i.remove();
               }
           }
       }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>