mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 21:43:33 +07:00
move instance method: do not break visitor - postpone whole expr replacement (IDEA-84207)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
class A {
|
||||
|
||||
void n(B b) {
|
||||
b.m(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class B {
|
||||
private final int i;
|
||||
|
||||
public B(int i) {
|
||||
this.i = i;
|
||||
}
|
||||
|
||||
|
||||
public int getI() {
|
||||
return i;
|
||||
}
|
||||
|
||||
void m(A a) {
|
||||
System.out.print("display for me the shape" + a + " " + getI() + "times");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user