Files
openide/java/java-tests/testData/inspection/switchLabeledRuleCanBeCodeBlockFix/afterThrowInExpression.java
Anna Kozlova 6f00747671 java: wrap switch labeled rule with code block: preserve end of line comments
GitOrigin-RevId: 4ae84e3a9b5cabb90d02a4fea073a821ff592e00
2020-05-25 22:47:36 +03:00

11 lines
287 B
Java

// "Wrap labeled rule's statement with code block" "GENERIC_ERROR_OR_WARNING"
class C {
String foo(int n) {
return switch (n) {
case 1 -> /*1*/ {
throw new RuntimeException(); /*2*/ //c3
}
default -> "b";
};
}
}