Inline useless single use local variable

This commit is contained in:
Gary Gregory 2024-05-12 09:05:20 -04:00
parent 248fcd7d8a
commit c2f6facdde
1 changed files with 1 additions and 3 deletions

View File

@ -61,7 +61,7 @@ public class LazyIteratorChainTest extends AbstractIteratorTest<String> {
@Override
public LazyIteratorChain<String> makeObject() {
final LazyIteratorChain<String> chain = new LazyIteratorChain<String>() {
return new LazyIteratorChain<String>() {
@Override
protected Iterator<String> nextIterator(final int count) {
switch (count) {
@ -75,8 +75,6 @@ public class LazyIteratorChainTest extends AbstractIteratorTest<String> {
return null;
}
};
return chain;
}
@BeforeEach