mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 00:19:11 +07:00
`throw e` won't fix the compilation error, comment - is not really better than empty catch block. GitOrigin-RevId: ea002c332900b032392e766f3dd13fe3258ad49c
16 lines
358 B
Java
16 lines
358 B
Java
class C {
|
|
void test(int n) {
|
|
String s = switch (n) {
|
|
case 1 -> "";
|
|
default -> {
|
|
try {
|
|
yield "a" + "b";
|
|
} catch (Exception e) {
|
|
throw new RuntimeException(e);
|
|
} finally {
|
|
}
|
|
}
|
|
;
|
|
};
|
|
}
|
|
} |