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