mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-01 04:20:56 +07:00
(cherry picked from commit f2ea406a5cf229cf9e63b6c2b53b9d86f245a6d9) IJ-CR-150207 GitOrigin-RevId: 0eec797e7e9d105bf594aabd85533bd5c5395dd1
20 lines
370 B
Plaintext
20 lines
370 B
Plaintext
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) {
|
|
((MyIfaceImpl) iface).extracted();
|
|
}
|
|
} |