mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
11 lines
290 B
Java
11 lines
290 B
Java
// "Wrap labeled rule's result expression with code block" "GENERIC_ERROR_OR_WARNING"
|
|
class C {
|
|
String foo(int n) {
|
|
return switch (n) {
|
|
case 1 -> /*1*/{
|
|
yield Integer.toString(/*2*/n);
|
|
}/*3*/
|
|
default -> "b";
|
|
};
|
|
}
|
|
} |