mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
15 lines
197 B
Java
15 lines
197 B
Java
public class Test {
|
|
void foo(Object o) {
|
|
if (o instanceof A) {
|
|
newMethod((A) o);
|
|
}
|
|
}
|
|
|
|
private void newMethod(A o) {
|
|
((A)o).bar();
|
|
}
|
|
}
|
|
|
|
class A {
|
|
void bar(){}
|
|
} |