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
11 lines
310 B
Java
11 lines
310 B
Java
// "Replace cast expressions with pattern variable" "true"
|
|
public final class A {
|
|
public void test(Object o) {
|
|
if (o instanceof String string) {
|
|
System.out.println(string.isEmpty());
|
|
for (int i = 0; i < string.length(); i++) {
|
|
System.out.println(string.charAt(i));
|
|
}
|
|
}
|
|
}
|
|
} |