mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-04 21:09:47 +07:00
GitOrigin-RevId: 6fa73efcfb43cd7da05f95ef66c2cd40a3dc1a14
9 lines
220 B
Java
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);
|
|
}
|
|
}
|