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