Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/anyMatch/afterAnyMatchCompoundAssignment.java
Bas Leijdekkers 1a3fa9f4f8 Java: clarify quick-fix text when collapsing to noneMatch() (IDEA-309845)
GitOrigin-RevId: 0890d9367b880820af1125b0cb292916b29c238c
2023-01-09 20:19:46 +00:00

13 lines
297 B
Java

// "Collapse loop with stream 'anyMatch()/noneMatch()/allMatch()'" "true-preview"
import java.util.List;
public class Main {
public boolean testAnyMatch(List<String> data) {
int x = 10;
if (data.stream().map(String::trim).anyMatch(String::isEmpty)) {
x *= 2;
}
}
}