mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
unchecked warning: mark as unchecked if passed to strict subtyping (IDEA-151302)
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import java.util.List;
|
||||
|
||||
interface FacetId<T extends List> {}
|
||||
|
||||
abstract class One {
|
||||
public abstract <F extends List<C>, C extends One> void findFacetType(FacetId<F> typeId);
|
||||
private void addSubFacet(FacetId<?> underlyingType) {
|
||||
findFacetType(underlyingType);
|
||||
}
|
||||
}
|
||||
|
||||
class Bar<X extends Foo> {}
|
||||
class Foo<C> {}
|
||||
class Main {
|
||||
void foo(Bar<?> a) {
|
||||
m(a);
|
||||
}
|
||||
|
||||
<X extends Foo<C>, C> void m(Bar<X> a) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user