mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
16 lines
380 B
Plaintext
16 lines
380 B
Plaintext
public class InlineSingleImplementation {
|
|
interface MyIface<T> {
|
|
void mySimpleMethod();
|
|
}
|
|
|
|
static class MyIfaceImpl<E extends CharSequence> implements MyIface<E> {
|
|
@Override
|
|
public void mySimpleMethod() {
|
|
System.out.println("Impl");
|
|
}
|
|
}
|
|
|
|
void test(MyIface<String> iface) {
|
|
System.out.println("Impl");
|
|
}
|
|
} |