Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
switchLabeledRuleCanBeCodeBlockFix
/
beforeThrowInStatement.java
blob: 7a1aba992b484bd7fcc4ec98e6e5d6145e36209c [
file
]
// "Wrap labeled rule's statement with code block" "GENERIC_ERROR_OR_WARNING"
class
C
{
String
foo
(
int
n
)
{
String
s
;
switch
(
n
)
{
<
caret
>
case
1
->
/*1*/
throw
/*2*/
new
RuntimeException
();
/*3*/
default
->
s
=
"b"
;
};
return
s
;
}
}