mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
GitOrigin-RevId: 6f59499467a97c5f04c2ce6834ddd84640235cdf
9 lines
201 B
Java
9 lines
201 B
Java
// "Replace with 'stream.findAny().isPresent()'" "false"
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
boolean isPresent(Stream<String> stream) {
|
|
return stream.limit(1).c<caret>ount() > 0;
|
|
}
|
|
} |