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

7 lines
189 B
Java

// "Replace with 'Collection.size()'" "true-preview"
import java.util.Arrays;
class Test {
long cnt = Arrays.asList('d', 'e', 'f')./*stream*/stream()./*count*/c<caret>ount()/*after*/;
}