This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git

commit 649a39b9fac9539d53a1fd8050a5a7c7b8b42224
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Oct 19 09:23:27 2024 -0400

    Whitespace
---
 .../commons/collections4/iterators/IteratorChainTest.java    | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java
 
b/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java
index 823071938..73fa7b20f 100644
--- 
a/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java
+++ 
b/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java
@@ -58,7 +58,6 @@ public class IteratorChainTest extends 
AbstractIteratorTest<String> {
     @Override
     public IteratorChain<String> makeObject() {
         final IteratorChain<String> chain = new IteratorChain<>();
-
         chain.addIterator(list1.iterator());
         chain.addIterator(list2.iterator());
         chain.addIterator(list3.iterator());
@@ -112,12 +111,9 @@ public class IteratorChainTest extends 
AbstractIteratorTest<String> {
         final Iterator<String> iter = makeObject();
         for (final String testValue : testArray) {
             final Object iterValue = iter.next();
-
             assertEquals(testValue, iterValue, "Iteration value is correct");
         }
-
         assertFalse(iter.hasNext(), "Iterator should now be empty");
-
         try {
             iter.next();
         } catch (final Exception e) {
@@ -129,20 +125,14 @@ public class IteratorChainTest extends 
AbstractIteratorTest<String> {
     @Override
     public void testRemove() {
         final Iterator<String> iter = makeObject();
-
-        assertThrows(IllegalStateException.class, () -> iter.remove(),
-                "Calling remove before the first call to next() should throw 
an exception");
-
+        assertThrows(IllegalStateException.class, () -> iter.remove(), 
"Calling remove before the first call to next() should throw an exception");
         for (final String testValue : testArray) {
             final String iterValue = iter.next();
-
             assertEquals(testValue, iterValue, "Iteration value is correct");
-
             if (!iterValue.equals("Four")) {
                 iter.remove();
             }
         }
-
         assertTrue(list1.isEmpty(), "List is empty");
         assertEquals(1, list2.size(), "List is empty");
         assertTrue(list3.isEmpty(), "List is empty");

Reply via email to