mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-02 11:07:44 +07:00
GitOrigin-RevId: f2ea406a5cf229cf9e63b6c2b53b9d86f245a6d9
20 lines
364 B
Java
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();
|
|
}
|
|
} |