mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-18 22:42:49 +07:00
9aa6ff59a6
GitOrigin-RevId: c4684094dc89266895a385cc5095416dc0dab77c
16 lines
410 B
Java
16 lines
410 B
Java
// "Split values of 'switch' branch" "true"
|
|
class C {
|
|
void foo(Object o) {
|
|
String s = "";
|
|
switch (o) {
|
|
case null:
|
|
s = "x";
|
|
break;
|
|
case ((((Number n)) && ((n.intValue() == 42)))):
|
|
s = "x";
|
|
break;
|
|
default:
|
|
throw new IllegalStateException("Unexpected value: " + o);
|
|
}
|
|
}
|
|
} |