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:
parent
1d665f225e
commit
0e4c0880cb
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue