Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/reduce/afterConjunctionBoxed.java

10 lines
236 B
Java

// "Replace with reduce()" "true"
import java.util.*;
public class Main {
public void testConjunctionBoxed() {
List<Boolean> booleans = new ArrayList<>();
Boolean acc = booleans.stream().reduce(true, (a, b) -> a && b);
}
}