mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
14 lines
237 B
Java
14 lines
237 B
Java
class C {
|
|
void test(int n) {
|
|
String s = switch (n) {
|
|
case 1:
|
|
yield "a"; // one comment
|
|
case 2:
|
|
yield "b";
|
|
case 3:
|
|
yield "a"; // another comment
|
|
default:
|
|
yield "";
|
|
};
|
|
}
|
|
} |