mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-15 11:12:59 +07:00
Java: Don't cast the argument to generic type because we already know that the actual type is assignable to it (IDEA-171284)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class C {
|
||||
<K> void method() {
|
||||
class Local {
|
||||
void foo(K k) {
|
||||
<selection>System.out.println(k);</selection>
|
||||
}
|
||||
void bar() {
|
||||
Object o = new Object();
|
||||
System.out.println(o);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user