JoiningMigration: preserve comments in removed toString() call

This commit is contained in:
Tagir Valeev
2018-09-07 18:31:22 +07:00
parent 04b078bc8b
commit aee5f482a6
3 changed files with 5 additions and 3 deletions
@@ -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;
}
}
@@ -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
();
}
}