mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 09:50:57 +07:00
20 lines
303 B
Java
20 lines
303 B
Java
class ExposeAnotherProblem {
|
|
|
|
class OneClass<T> {
|
|
public T get(){
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class AnotherClass<T> {}
|
|
|
|
|
|
static <T, R extends OneClass<T>> R method1(AnotherClass<T> param) {
|
|
return null;
|
|
}
|
|
|
|
<E> E method2(AnotherClass<E> param){
|
|
return method1(param).get();
|
|
}
|
|
|
|
} |