mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
12 lines
212 B
Java
12 lines
212 B
Java
class Test {
|
|
{
|
|
String a = cast("str");
|
|
Integer[] b = cast(new Integer[0]);
|
|
Object[] c = cast(new Object[0]);
|
|
}
|
|
|
|
private <T> T cast(Object obj) {
|
|
return (T)obj;
|
|
}
|
|
}
|