mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 20:07:01 +07:00
11 lines
295 B
Java
11 lines
295 B
Java
// "Wrap labeled rule's statement with code block" "GENERIC_ERROR_OR_WARNING"
|
|
class C {
|
|
String foo(int n) {
|
|
String s;
|
|
switch (n) {
|
|
<caret>case 1 -> /*1*/ throw /*2*/new RuntimeException(); /*3*/
|
|
default -> s = "b";
|
|
};
|
|
return s;
|
|
}
|
|
} |