Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/beforeAnyMatchCompoundAssignment.java

17 lines
300 B
Java

// "Replace with anyMatch()" "true"
import java.util.List;
public class Main {
public boolean testAnyMatch(List<String> data) {
int x = 10;
for(String str : da<caret>ta) {
String trimmed = str.trim();
if(trimmed.isEmpty()) {
x *= 2;
break;
}
}
}
}