Files
openide/java/java-tests/testData/inspection/redundantLabeledSwitchRuleCodeBlockFix/afterThrowInExpression.java
Anna Kozlova e9b02eb233 [java] get rid of ProblemHighlightType.LIKE_UNUSED_SYMBOL in favor of editor attributes (IDEA-27007)
GitOrigin-RevId: 950de9dbd0cf727c6baa7363783e1723fb398a62
2022-04-26 11:39:49 +00:00

9 lines
226 B
Java

// "Unwrap code block of labeled rule" "GENERIC_ERROR_OR_WARNING"
class C {
String foo(int n) {
return switch (n) {
case 1 -> throw new RuntimeException();
default -> "b";
};
}
}