mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +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:
@@ -0,0 +1,10 @@
|
||||
class C {
|
||||
<K> void f(K k) {
|
||||
<selection>System.out.println(k);</selection>
|
||||
}
|
||||
|
||||
void g() {
|
||||
Object o = "";
|
||||
System.out.println(o);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user