mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 08:00:18 +07:00
GitOrigin-RevId: 9d8cf85eb1eee3ca8a38c2bcde119666afcc7934
15 lines
300 B
Java
15 lines
300 B
Java
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
boolean isEmpty(Stream<String> stream) {
|
|
/*d*/
|
|
/*e*/
|
|
/*f*/
|
|
/*g*/
|
|
/*h*/
|
|
/*i*/
|
|
return /*a*/stream/*b*/./*c*/limit(42).findAny().isEmpty()/*j*/;
|
|
}
|
|
} |