mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
9 lines
259 B
Java
9 lines
259 B
Java
// "Make 'hasEmpty' effectively final using stream API" "true-preview"
|
|
import java.util.*;
|
|
|
|
class X {
|
|
void test(List<String> list) {
|
|
boolean hasEmpty = list.stream().anyMatch(String::isEmpty);
|
|
Runnable r = () -> System.out.println(hasEmpty);
|
|
}
|
|
} |