mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
17 lines
377 B
Java
17 lines
377 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) {
|
|
boolean x = false;
|
|
for (String s : list) {
|
|
if (s.isEmpty()) {
|
|
x = list.stream().anyMatch(Objects::isNull);
|
|
break;
|
|
}
|
|
}
|
|
return x;
|
|
}
|
|
} |