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();
                                 }
                             }


Reply via email to