Files
openide/java/java-tests/testData/codeInsight/generation/surroundWith/java12/CaseThrowWithBlock.java
T

8 lines
185 B
Java

class C {
void test(int n) {
String s = switch (n) {
case 1 -> <selection>throw new RuntimeException();</selection>
default -> "";
};
}
}