Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamToLoop/afterFindFirstIsPresentNotTernary.java
2016-12-19 18:43:21 +07:00

18 lines
372 B
Java

// "Replace Stream API chain with loop" "true"
import java.util.List;
import java.util.Objects;
public class Main {
String test(List<List<String>> strings) {
for (List<String> string : strings) {
if (string != null) {
for (String s : string) {
return "abc";
}
}
}
return "xyz";
}
}