diff --git a/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java b/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java index cc8bf40d5..3e5465d96 100644 --- a/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java +++ b/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java @@ -22,7 +22,6 @@ import static org.junit.jupiter.api.Assertions.assertNull; import java.util.Arrays; import java.util.Collection; import java.util.LinkedList; -import java.util.List; import java.util.Queue; import org.apache.commons.collections4.Predicate; @@ -60,8 +59,7 @@ public class PredicatedQueueTest extends AbstractQueueTest { @Override public Collection makeConfirmedFullCollection() { - final List list = new LinkedList<>(Arrays.asList(getFullElements())); - return list; + return new LinkedList<>(Arrays.asList(getFullElements())); } @Override