Inline useless single use local variable
This commit is contained in:
parent
c2f6facdde
commit
138468805f
|
@ -22,7 +22,6 @@ import static org.junit.jupiter.api.Assertions.assertNull;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Queue;
|
import java.util.Queue;
|
||||||
|
|
||||||
import org.apache.commons.collections4.Predicate;
|
import org.apache.commons.collections4.Predicate;
|
||||||
|
@ -60,8 +59,7 @@ public class PredicatedQueueTest<E> extends AbstractQueueTest<E> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Collection<E> makeConfirmedFullCollection() {
|
public Collection<E> makeConfirmedFullCollection() {
|
||||||
final List<E> list = new LinkedList<>(Arrays.asList(getFullElements()));
|
return new LinkedList<>(Arrays.asList(getFullElements()));
|
||||||
return list;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue