Files
openide/java/java-tests/testData/codeInsight/generation/surroundWith/java13/CaseThrowWithTryCatch_after.java
T
2019-07-02 06:52:16 +03:00

15 lines
375 B
Java

class C {
void test(int n) {
String s = switch (n) {
case 1 -> /*0*/{
try {
/*1*/
throw new /*2*/RuntimeException("a")/*3*/;/*4*/
} catch (RuntimeException e) {
e.printStackTrace();
}
}
default -> "";
};
}
}