mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-23 10:14:50 +07:00
GitOrigin-RevId: c869ac621c25373fa08e742439f6022fa6052efc
24 lines
401 B
Java
24 lines
401 B
Java
public class FooBar {
|
|
static final class B<caret>ar {
|
|
private Bar() {
|
|
}
|
|
}
|
|
|
|
private interface I<T> {
|
|
T create();
|
|
}
|
|
|
|
static void foo(I intf) {}
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
foo(Bar::new);
|
|
}
|
|
}
|
|
|
|
class FooBarBaz {
|
|
public static void main(String[] args) throws Exception {
|
|
foo(FooBar.Bar::new);
|
|
}
|
|
}
|