Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/SkipSwitchExpressionWithThrow.java
Mikhail Pyltsin df7f634b4c [java-inspections] IDEA-326230 EnhancedSwitchBackwardMigrationInspection supports comments more accurately
- move tests

GitOrigin-RevId: da493b12e29b8bf5849c10a2410ca2e71a7a4a69
2023-08-11 17:50:27 +00:00

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();
};
}
}