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

10 lines
234 B
Java

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