Files
openide/java/java-tests/testData/refactoring/inlineMethod/InlineSingleImplementationCastOnThis.java
2024-11-26 09:06:06 +00:00

20 lines
364 B
Java

public class InlineSingleImplementation {
interface MyIface {
void mySimpleMethod();
}
static class MyIfaceImpl implements MyIface {
@Override
public void mySimpleMethod() {
extracted();
}
private void extracted() {
System.out.println("Impl");
}
}
void test(MyIface iface) {
iface.<caret>mySimpleMethod();
}
}