mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
9 lines
199 B
Java
9 lines
199 B
Java
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
boolean isPresent(Stream<String> stream) {
|
|
return 0 < stream.c<caret>ount();
|
|
}
|
|
} |