Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamToLoop/beforeCollectReduce3.java

10 lines
285 B
Java

// "Replace Stream API chain with loop" "true"
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Main<T> {
void test() {
Integer totalLength = Stream.of("a", "bb", "ccc").co<caret>llect(Collectors.reducing(0, String::length, Integer::sum));
}
}