Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
codeInsight
/
unwrapElseBranch
/
afterLabeled1.java
blob: 2b432b58e7058362efd137c2a92a0f3379d227d2 [
file
]
// "Unwrap 'else' branch (changes semantics)" "true"
class
T
{
void
f
(
boolean
a
,
boolean
b
)
{
if
(
a
)
{
Label
:
{
if
(
b
)
System
.
out
.
println
(
"When true"
);
throw
new
RuntimeException
(
"Otherwise"
);
}
}
System
.
out
.
println
(
"Done"
);
}
}