diff --git a/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java b/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java index f2d2a635e7..bf2a854552 100644 --- a/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java +++ b/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java @@ -751,7 +751,7 @@ public void testAsMapRemove() { } public void testAsMapValues() { - if(!isAddSupported() || isHashSetValue()){ + if (!isAddSupported() || isHashSetValue()) { return; } final MultiValuedMap multiMap = makeObject(); @@ -762,8 +762,8 @@ public void testAsMapValues() { multiMap.put((K) "B", (V) "Q"); multiMap.put((K) "B", (V) "L"); assertEquals("{A=[W, X, F], B=[Q, Q, L]}", multiMap.toString()); - for(Collection list : multiMap.asMap().values()){ - for(Iterator it = list.iterator(); it.hasNext(); ){ + for (Collection list : multiMap.asMap().values()) { + for (Iterator it = list.iterator(); it.hasNext(); ) { V i = it.next(); it.remove(); } @@ -772,7 +772,7 @@ public void testAsMapValues() { } public void testAsMapEntrySet() { - if(!isAddSupported() || isHashSetValue()){ + if (!isAddSupported() || isHashSetValue()){ return; } final MultiValuedMap multiMap = makeObject(); @@ -784,8 +784,8 @@ public void testAsMapEntrySet() { multiMap.put((K) "B", (V) "L"); assertEquals("{A=[W, X, F], B=[Q, Q, L]}", multiMap.toString()); Map> asMap = multiMap.asMap(); - for(Map.Entry> entry : asMap.entrySet()){ - for(Iterator it = entry.getValue().iterator(); it.hasNext(); ){ + for (Map.Entry> entry : asMap.entrySet()){ + for (Iterator it = entry.getValue().iterator(); it.hasNext(); ){ V str = it.next(); it.remove(); }