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