格式化代码并修改错误

This commit is contained in:
YuCheng Hu 2022-04-30 18:32:52 -04:00
parent 8c5ab530f0
commit 2b7b8e8f94
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class JavaCollectionCleanupUnitTest {
@Test
public void givenListContainsNulls_whenRemovingNullsWithPlainJava_thenCorrect() {
final List<Integer> list = Lists.newArrayList(null, 1, null);
while (list.remove(null));
while (list.remove(null)) ;
assertThat(list, hasSize(1));
}