Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
codeInsight
/
unwrapElseBranch
/
beforeSwitch1.java
blob: 8b7814447344d74b26b462a810f0d2f9eb57e4e6 [
file
]
// "Unwrap 'else' branch (changes semantics)" "true"
class
T
{
void
f
(
boolean
b
,
int
n
)
{
switch
(
n
)
{
case
1
:
if
(
b
)
System
.
out
.
println
(
"When true"
);
<
caret
>
else
// Before
System
.
out
.
println
(
"Otherwise"
);
// After
case
2
:
}
}
}