commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections SoftRefHashMap.java
Date Sun, 24 Nov 2002 17:30:15 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message