mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
11 lines
212 B
Java
11 lines
212 B
Java
class X {
|
|
void test(Object obj) {
|
|
if (obj instanceof String a) {
|
|
System.out.println(newMethod(a));
|
|
}
|
|
}
|
|
|
|
private int newMethod(String a) {
|
|
return a.length();
|
|
}
|
|
} |