mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 18:17:08 +07:00
- go up and back recursively GitOrigin-RevId: 22f7483909ce66511b129db5a24ebe1af3dce450
19 lines
440 B
Java
19 lines
440 B
Java
// "Replace cast expressions with pattern variable" "true"
|
|
public final class A {
|
|
public void test2(Object o) {
|
|
if(!(o instanceof String string)){
|
|
return;
|
|
}
|
|
if(o instanceof List){
|
|
return;
|
|
}
|
|
System.out.println("1");
|
|
|
|
if (o instanceof Object) {
|
|
System.out.println(string.isEmpty());
|
|
for (int i = 0; i < string.length(); i++) {
|
|
System.out.println(string.charAt(i));
|
|
}
|
|
}
|
|
}
|
|
} |