mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
(cherry picked from commit f2ea406a5cf229cf9e63b6c2b53b9d86f245a6d9) IJ-CR-150207 GitOrigin-RevId: 0eec797e7e9d105bf594aabd85533bd5c5395dd1
18 lines
407 B
Plaintext
18 lines
407 B
Plaintext
public class InlineSingleImplementation {
|
|
interface MyIface {
|
|
void mySimpleMethod();
|
|
}
|
|
|
|
static class MyIfaceImpl implements MyIface {
|
|
@Override
|
|
public void mySimpleMethod() {
|
|
System.out.println(toString());
|
|
System.out.println(this.toString());
|
|
}
|
|
}
|
|
|
|
void test(MyIface iface) {
|
|
System.out.println(iface.toString());
|
|
System.out.println(iface.toString());
|
|
}
|
|
} |