mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 12:10:37 +07:00
GitOrigin-RevId: 34ca9d82a66a7c3c71420b94ca9cbcd2fff7be68
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();
|
|
}
|
|
} |