Fix unit test.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@785853 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joerg Schaible 2009-06-17 23:26:23 +00:00
parent 1d665f225e
commit 0e4c0880cb
1 changed files with 2 additions and 1 deletions

View File

@ -490,7 +490,8 @@ public class TestLRUMap extends AbstractTestOrderedMap {
}
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();
}
}