From cbb1f0b2adc6e0d3a2968a50934e7e42cd4e60a8 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 28 Nov 2023 11:10:53 -0500 Subject: [PATCH] Use String#isEmpty() --- .../org/apache/commons/collections4/list/AbstractListTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 762865f5e2..110ef72e0e 100644 --- a/src/test/java/org/apache/commons/collections4/list/AbstractListTest.java +++ b/src/test/java/org/apache/commons/collections4/list/AbstractListTest.java @@ -299,7 +299,7 @@ public void testListEquals() { resetFull(); list = getCollection(); - assertFalse(list.equals(""), "List shouldn't equal String"); + assertFalse(list.isEmpty(), "List shouldn't equal String"); verify(); final List listForC = Arrays.asList(getFullElements());