mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
9 lines
211 B
Java
9 lines
211 B
Java
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
boolean isPresent(Stream<String> stream) {
|
|
return stream.skip(42).findAny().isPresent();
|
|
}
|
|
} |