encapsulate fields: preserve comments inside (IDEA-124747)

This commit is contained in:
Anna Kozlova
2014-06-06 17:47:25 +04:00
parent 1a3c6c6b80
commit 693bbf6ef8
4 changed files with 42 additions and 21 deletions
@@ -0,0 +1,16 @@
public class A {
public int i;
void foo(A a) {
System.out.println(a./*comment*/getI());
a/*comment*/.setI(42);
}
public int getI() {
return i;
}
public void setI(int i) {
this.i = i;
}
}
@@ -0,0 +1,8 @@
public class A {
public int i;
void foo(A a) {
System.out.println(a./*comment*/i);
a/*comment*/.i = 42;
}
}