mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Fix end-of-line comment handling
GitOrigin-RevId: f982435cd3a1659b0a1be1970cd5807419f16ccd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b74b7c8ef2
commit
69a085809a
+12
@@ -0,0 +1,12 @@
|
||||
// "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";
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Replace with anyMatch()" "true"
|
||||
import java.util.List;
|
||||
|
||||
class X {
|
||||
String test(List<String> list) {
|
||||
for (String s : li<caret>st) {
|
||||
String s1 = s.trim();
|
||||
if (s1.isEmpty()) {
|
||||
return null; // Comment
|
||||
}
|
||||
}
|
||||
System.out.println("hello");
|
||||
return "foo";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user