mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
18 lines
407 B
Java
18 lines
407 B
Java
import java.util.List;
|
|
|
|
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) {
|
|
iface.<caret>mySimpleMethod();
|
|
}
|
|
} |