UnnecessaryToStringCallInspection: preserve comments on fix (IDEA-CR-29000)

This commit is contained in:
Tagir Valeev
2018-07-03 10:13:16 +07:00
parent 53b6a83c94
commit e9fcd24559
3 changed files with 5 additions and 3 deletions
@@ -1,6 +1,7 @@
// "Replace with 'this'" "true"
class X {
void test(Object x) {
System.out.println(this);
/*comment*/
System.out.println(this);
}
}
@@ -1,6 +1,6 @@
// "Replace with 'this'" "true"
class X {
void test(Object x) {
System.out.println(toStri<caret>ng());
System.out.println(toStri<caret>ng(/*comment*/));
}
}