unchecked warning: don't warn for raw substitutor if parameter type mentions method's type parameter

GitOrigin-RevId: 8f0b56e55747ff36fffc6d60ae06bb4aea9fcd96
This commit is contained in:
Anna Kozlova
2019-05-29 21:13:43 +03:00
committed by intellij-monorepo-bot
parent 6a68c1583a
commit ebf02771d4
3 changed files with 16 additions and 4 deletions
@@ -0,0 +1,11 @@
interface Predicate<<warning descr="Type parameter 'T' is never used">T</warning>> {}
class Foo {
static <C extends I> void process(Predicate<C> <warning descr="Parameter 'predicate' is never used">predicate</warning>, C <warning descr="Parameter 'context' is never used">context</warning>) {}
}
interface I {}
class Bar implements I {
Predicate p;
{
Foo.process(p, new Bar());
}
}