Files
openide/java/java-tests/testData/inspection/inefficientStreamCount/beforeFlatMapLambda.java
T
Tagir Valeev c8b125fb65 IDEA-163051 "Replace inefficient Stream API call chains ending with count()": fix leaves redundant casts
IDEA-163050 "Replace inefficient Stream API call chains ending with count()": highlighting
2016-10-25 12:27:51 +07:00

13 lines
291 B
Java

// "Replace Stream.flatMap().count() with Stream.mapToLong().sum()" "true"
import java.util.List;
public class Main {
private String s;
public Main(List<List<String>> s) {
long count = s.stream().flatMap((strings) -> {
return (strings.stream());
}).cou<caret>nt();
}
}