mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
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);
|
|
}
|
|
}
|