mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
14 lines
301 B
Java
14 lines
301 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
class Test {
|
|
|
|
void foo(Object x) {
|
|
if (x instanceof String) x = newMethod((String) x);
|
|
if (x instanceof String) x = newMethod((String) x);
|
|
}
|
|
|
|
@NotNull
|
|
private String newMethod(String x) {
|
|
return x.substring(1);
|
|
}
|
|
} |