Files
openide/java/java-tests/testData/inspection/streamApiCallChains/beforeAllMatchNegated.java
T

10 lines
275 B
Java

// "Replace Stream.allMatch(x -> !(...)) with noneMatch(...)" "false"
import java.util.*;
class Test {
public boolean testAnyMatch(List<List<String>> data) {
if(!data.stream().flatMap(Collection::stream).allM<caret>atch(str -> str.isEmpty()))
return true;
}
}