Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/beforeAnyMatchChain.java
2016-10-18 10:54:33 +07:00

16 lines
320 B
Java

// "Replace with anyMatch()" "true"
import java.util.List;
public class Main {
boolean find(List<String> data, boolean other, boolean third) {
for(String e : da<caret>ta) {
String trimmed = e.trim();
if(trimmed.startsWith("xyz")) {
return true;
}
}
return other || third;
}
}