mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-04 12:03:57 +07:00
GitOrigin-RevId: 6fa73efcfb43cd7da05f95ef66c2cd40a3dc1a14
9 lines
214 B
Java
9 lines
214 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 = tryCast(obj, Integer.class);
|
|
}
|
|
}
|