mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
JoiningMigration: preserve comments in removed toString() call
This commit is contained in:
+2
-1
@@ -8,6 +8,7 @@ public class Test {
|
||||
String sb;
|
||||
System.out.println("hello");
|
||||
sb = list.stream().filter(s -> !s.isEmpty()).map(String::trim).collect(Collectors.joining());
|
||||
return sb.length() == 0 ? null : sb;
|
||||
//comment
|
||||
return sb.length() == 0 ? null : sb;
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -11,6 +11,7 @@ public class Test {
|
||||
sb.append(s.trim());
|
||||
}
|
||||
}
|
||||
return sb.length() == 0 ? null : sb.toString();
|
||||
return sb.length() == 0 ? null : sb.toString//comment
|
||||
();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user