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

10 lines
260 B
Java

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