mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
15 lines
319 B
Java
15 lines
319 B
Java
// "Copy 'switch' branch" "true-preview"
|
|
class C {
|
|
void foo(String s) {
|
|
String result = "";
|
|
switch (s) {
|
|
case "foo":
|
|
case "bar":
|
|
result = "x";
|
|
break;
|
|
case null:
|
|
result = "x";
|
|
break;
|
|
}
|
|
}
|
|
} |