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