mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
21 lines
339 B
Java
21 lines
339 B
Java
interface E {}
|
|
interface F extends E {
|
|
ArrayFactory<F> ARRAY_FACTORY = null;
|
|
}
|
|
|
|
interface ArrayFactory<T> {
|
|
T[] create(int count);
|
|
}
|
|
|
|
interface Stub<K> {}
|
|
|
|
class M {
|
|
|
|
public F[] get(Stub s) {
|
|
return foo(s, F.ARRAY_FACTORY);
|
|
}
|
|
|
|
private <T extends E> T[] foo(Stub<T> stub, ArrayFactory<T> arrayFactory) {
|
|
return null;
|
|
}
|
|
} |