Files
openide/java/java-tests/testData/inspection/inefficientStreamCount/afterStreamCountComparisonNoneMatch.java
Tagir Valeev 92ac28f978 [java-inspections] ReplaceInefficientStreamCountInspection: test preview
GitOrigin-RevId: 9d8cf85eb1eee3ca8a38c2bcde119666afcc7934
2024-04-11 14:46:30 +00:00

9 lines
206 B
Java

// "Replace with 'stream.noneMatch()'" "true-preview"
import java.util.Arrays;
class Test {
boolean noneMatch() {
return Arrays.asList("ds", "e", "fe").stream().noneMatch(s -> s.length() > 1);
}
}