Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/patchMethodParams/beforeClass.java
Tagir Valeev 8a9959167b [java-intentions] IDEA-299075 Better quick-fixes when generic method call has mismatched type
GitOrigin-RevId: 6fa73efcfb43cd7da05f95ef66c2cd40a3dc1a14
2022-08-01 18:23:39 +00:00

9 lines
220 B
Java

// "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);
}
}