mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
redundant cast: take into account custom return type processing for getClass (IDEA-109527)
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems/>
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class B { }
|
||||
class A extends B { }
|
||||
|
||||
class C {
|
||||
void m(Class<? extends A> c) {}
|
||||
|
||||
void x(B b) {
|
||||
m(((A)b).getClass());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user