mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
GitOrigin-RevId: 088ce28eb3b8cbbce9aa1cfc1b073fef2dab12ce
9 lines
251 B
Java
9 lines
251 B
Java
// "Replace 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);
|
|
}
|
|
} |