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

10 lines
227 B
Java

// "Replace !LongStream.anyMatch(...) with noneMatch(...)" "true"
import java.util.stream.*;
class Test {
public boolean testAnyMatch(long[] data) {
if(LongStream.of(data).noneMatch(i -> i > 0))
return true;
}
}