mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-25 06:18:32 +07:00
GitOrigin-RevId: e9d934fc8d31016744f2302c39651eb6ecfa4de7
9 lines
251 B
Java
9 lines
251 B
Java
// "Replace the loop with Collection.removeIf" "true"
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void removeEmpty(List<String> list) throws Exception {
|
|
// Presumably CopyOnWriteArrayList
|
|
list.removeIf(String::isEmpty);
|
|
}
|
|
} |