Inline useless single use local variable

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

View File

@ -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<E> extends AbstractQueueTest<E> {
@Override
public Collection<E> makeConfirmedFullCollection() {
final List<E> list = new LinkedList<>(Arrays.asList(getFullElements()));
return list;
return new LinkedList<>(Arrays.asList(getFullElements()));
}
@Override