Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/anyMatch/afterEndComment.java
Tagir Valeev 69a085809a Fix end-of-line comment handling
GitOrigin-RevId: f982435cd3a1659b0a1be1970cd5807419f16ccd
2020-06-03 09:09:48 +03:00

12 lines
292 B
Java

// "Replace with anyMatch()" "true"
import java.util.List;
class X {
String test(List<String> list) {
if (list.stream().map(String::trim).anyMatch(String::isEmpty)) {
return null; // Comment
}
System.out.println("hello");
return "foo";
}
}