java redundant cast: check erased context (IDEA-205885)

GitOrigin-RevId: 1dd464c7b8feba43181c9e60472170b2bbbaa72e
This commit is contained in:
Anna Kozlova
2020-05-04 20:49:32 +00:00
committed by intellij-monorepo-bot
parent 38260907d1
commit 02d7164d3b
3 changed files with 14 additions and 1 deletions
@@ -0,0 +1,8 @@
import java.util.function.Predicate;
class X<T> {
void test(Predicate<String> p) {
}
void foo(X x) {
x.test((Predicate<String>)e -> e.isEmpty());
}
}