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