mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 11:40:50 +07:00
18 lines
285 B
Java
18 lines
285 B
Java
public class FooBar {
|
|
private static final class Bar1 {
|
|
private Bar1() {
|
|
}
|
|
}
|
|
|
|
private interface I<T> {
|
|
T create();
|
|
}
|
|
|
|
static void foo(I intf) {}
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
foo(Bar1::new);
|
|
}
|
|
}
|