commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joe...@apache.org
Subject svn commit: r785853 - /commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java
Date Wed, 17 Jun 2009 23:26:24 GMT
Author: joehni
Date: Wed Jun 17 23:26:23 2009
New Revision: 785853

URL: http://svn.apache.org/viewvc?rev=785853&view=rev
Log:
Fix unit test.

Modified:
    commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java?rev=785853&r1=785852&r2=785853&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java
Wed Jun 17 23:26:23 2009
@@ -490,7 +490,8 @@
                         }
                         synchronized (map) {
                             for (MapIterator iter = map.mapIterator(); iter.hasNext();) {
-                                if (map.get(iter.getValue()) == this) {
+                                String name = (String)iter.next();
+                                if (map.get(name) == this) {
                                     iter.remove();
                                 }
                             }



Mime
View raw message