mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
- use PsiStatement as scope instead of PsiIfStatement - more tests GitOrigin-RevId: 2602190296988a80d54520c7a0f15fd0f8e3d942
24 lines
511 B
Java
24 lines
511 B
Java
// "Replace cast expressions with pattern variable" "true"
|
|
public final class A {
|
|
private static Object foo5(Object o) {
|
|
return new Runnable() {
|
|
@Override
|
|
public void run() {
|
|
if (!(o instanceof Integer)) {
|
|
return;
|
|
}
|
|
final String string = ((Intege<caret>r) o).toString();
|
|
if (string.equals("1")) {
|
|
return;
|
|
}
|
|
if (((Integer) o).intValue() == 1) {
|
|
return;
|
|
}
|
|
|
|
print(((Integer) o));
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
} |