mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
method applicability: do not check erased types if method was not called on raw type (IDEA-104992)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import java.util.Collection;
|
||||
import java.util.Set;
|
||||
|
||||
class FooObject<T> {}
|
||||
class FooId<T extends FooObject> {}
|
||||
|
||||
interface Bar {
|
||||
<T extends FooObject, I extends FooId<? extends T>> T get(I key);
|
||||
<T extends FooObject, I extends FooId<? extends T>> Collection<T> get(Collection<I> keys);
|
||||
}
|
||||
|
||||
public class Target {
|
||||
void foo(Bar bar) {
|
||||
final Set<FooId<?>> keys = null;
|
||||
final Collection<FooObject> values = bar.get(keys);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user