Inline useless single use local variable
This commit is contained in:
parent
248fcd7d8a
commit
c2f6facdde
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue