mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 23:31:05 +07:00
10 lines
286 B
Java
10 lines
286 B
Java
class SkipSwitchExpressionWithThrow {
|
|
static boolean test(int x) {
|
|
return switch (x) {
|
|
case 404 -> false;
|
|
case 401 -> throw new RuntimeException();
|
|
case 403 -> throw new IllegalArgumentException();
|
|
default -> throw new IllegalStateException();
|
|
};
|
|
}
|
|
} |