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