mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 23:21:09 +07:00
GitOrigin-RevId: 9d8cf85eb1eee3ca8a38c2bcde119666afcc7934
10 lines
310 B
Java
10 lines
310 B
Java
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
boolean isEmpty(Stream<String> stream) {
|
|
return stream.peek(System.out::println).collect(Collectors.toList()).stream().limit(42).findAny().isPresent();
|
|
}
|
|
} |