mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 01:11:31 +07:00
- use PsiStatement as scope instead of PsiIfStatement - more tests GitOrigin-RevId: 2602190296988a80d54520c7a0f15fd0f8e3d942
17 lines
413 B
Java
17 lines
413 B
Java
// "Replace cast expressions with pattern variable" "true"
|
|
public final class A {
|
|
private static boolean foo4(Number o, Number n) {
|
|
if (!(o instanceof Integer integer)) {
|
|
return false;
|
|
} else if (integer.describeConstable().get() == 1) {
|
|
return true;
|
|
}
|
|
|
|
if (integer.describeConstable().get() == 2) {
|
|
return true;
|
|
}
|
|
|
|
return integer.describeConstable().get() == 3;
|
|
}
|
|
|
|
} |