Files
openide/java/java-tests/testData/refactoring/moveInstanceMethod/Interface.java.after

19 lines
279 B
Plaintext

interface Foreign {
void foo(Test1 test1);
}
class ForeignImpl implements Foreign {
@Override
public void foo(Test1 test1) {
test1.field++;
}
}
public abstract class Test1 {
int field;
void bar () {
new ForeignImpl().foo(this);
}
}