mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
15 lines
338 B
Java
15 lines
338 B
Java
// "Replace Stream API chain with loop" "true-preview"
|
|
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public boolean testCond(List<String> list) {
|
|
for (String s : list) {
|
|
if (s.isEmpty()) {
|
|
return list.stream().anyMatch(Objects::isNull);
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
} |