mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-29 09:49:56 +07:00
[java-intentions] IDEA-299075 Better quick-fixes when generic method call has mismatched type
GitOrigin-RevId: 6fa73efcfb43cd7da05f95ef66c2cd40a3dc1a14
This commit is contained in:
committed by
intellij-monorepo-bot
parent
46c6cb94ad
commit
8a9959167b
@@ -0,0 +1,8 @@
|
||||
// "Replace 'Double.class' with 'Integer.class'" "true-preview"
|
||||
class Demo {
|
||||
native static <T> T tryCast(Object obj, Class<T> clazz);
|
||||
|
||||
void test(Object obj) {
|
||||
Integer i = <caret>tryCast(obj, Double.class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user