From 43214abc7958e4fb8d6e8942c4fb51c7be9501a4 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 12 May 2024 09:02:08 -0400 Subject: [PATCH] Inline useless single use local variable --- .../org/apache/commons/collections4/list/AbstractListTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/collections4/list/AbstractListTest.java b/src/test/java/org/apache/commons/collections4/list/AbstractListTest.java index d1750bed4..8d67aac9b 100644 --- a/src/test/java/org/apache/commons/collections4/list/AbstractListTest.java +++ b/src/test/java/org/apache/commons/collections4/list/AbstractListTest.java @@ -353,8 +353,7 @@ public abstract class AbstractListTest extends AbstractCollectionTest { */ @Override public Collection makeConfirmedCollection() { - final ArrayList list = new ArrayList<>(); - return list; + return new ArrayList<>(); } /**