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