From 2b7b8e8f94897811ef35686f4baff485300fafd0 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Sat, 30 Apr 2022 18:32:52 -0400 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=B9=B6=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ossez/collections/JavaCollectionCleanupUnitTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-java-modules/core-java-collections-list/src/test/java/com/ossez/collections/JavaCollectionCleanupUnitTest.java b/core-java-modules/core-java-collections-list/src/test/java/com/ossez/collections/JavaCollectionCleanupUnitTest.java index f5f85ee57d..fe746b2dd0 100644 --- a/core-java-modules/core-java-collections-list/src/test/java/com/ossez/collections/JavaCollectionCleanupUnitTest.java +++ b/core-java-modules/core-java-collections-list/src/test/java/com/ossez/collections/JavaCollectionCleanupUnitTest.java @@ -34,7 +34,7 @@ public class JavaCollectionCleanupUnitTest { @Test public void givenListContainsNulls_whenRemovingNullsWithPlainJava_thenCorrect() { final List list = Lists.newArrayList(null, 1, null); - while (list.remove(null)); + while (list.remove(null)) ; assertThat(list, hasSize(1)); }