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

9 lines
220 B
Java

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