mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-29 06:32:23 +07:00
11 lines
255 B
Java
11 lines
255 B
Java
class Test {
|
|
|
|
void foo(Object x) {
|
|
if (x instanceof String) x = newMethod((String) x);
|
|
if (x instanceof String) x = newMethod((String) x);
|
|
}
|
|
|
|
private String newMethod(String x) {
|
|
return ((String)x).substring(1);
|
|
}
|
|
} |