diff --git a/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java b/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java index b4c391741..c520edce3 100644 --- a/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java +++ b/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java @@ -61,7 +61,7 @@ public class LazyIteratorChainTest extends AbstractIteratorTest { @Override public LazyIteratorChain makeObject() { - final LazyIteratorChain chain = new LazyIteratorChain() { + return new LazyIteratorChain() { @Override protected Iterator nextIterator(final int count) { switch (count) { @@ -75,8 +75,6 @@ public class LazyIteratorChainTest extends AbstractIteratorTest { return null; } }; - - return chain; } @BeforeEach