Files
openide/java/java-tests/testData/inspection/inefficientStreamCount10/afterSimpleCountComparisonIsEmpty.java
Andrey.Cherkasov ed3236c513 [java-inspections] ReplaceInefficientStreamCountInspection: support new types of comparisons
GitOrigin-RevId: 6f59499467a97c5f04c2ce6834ddd84640235cdf
2021-03-23 20:53:37 +00:00

9 lines
199 B
Java

// "Replace with '!stream.findAny().isPresent()'" "true"
import java.util.stream.Stream;
class Test {
boolean notIsPresent(Stream<String> stream) {
return !stream.findAny().isPresent();
}
}