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

12 lines
261 B
Java

// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
import java.util.Collection;
import java.util.List;
public class Main {
private String s;
public Main(List<List<String>> s) {
long count = s.stream().mapToLong(Collection::size).sum();
}
}