[java-intentions] IDEA-299075 Better quick-fixes when generic method call has mismatched type

GitOrigin-RevId: 6fa73efcfb43cd7da05f95ef66c2cd40a3dc1a14
This commit is contained in:
Tagir Valeev
2022-08-01 18:12:10 +02:00
committed by intellij-monorepo-bot
parent 46c6cb94ad
commit 8a9959167b
33 changed files with 512 additions and 23 deletions

View File

@@ -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);
}
}