mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
GitOrigin-RevId: f982435cd3a1659b0a1be1970cd5807419f16ccd
12 lines
292 B
Java
12 lines
292 B
Java
// "Replace with anyMatch()" "true"
|
|
import java.util.List;
|
|
|
|
class X {
|
|
String test(List<String> list) {
|
|
if (list.stream().map(String::trim).anyMatch(String::isEmpty)) {
|
|
return null; // Comment
|
|
}
|
|
System.out.println("hello");
|
|
return "foo";
|
|
}
|
|
} |