Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
codeInsight
/
invertIfCondition
/
beforeSCR2542.java
blob: ce9c3ec4279a1613ac152edc5a842ed38b952ae4 [
file
]
// "Invert 'if' condition" "true"
// else on the same line
class
TestInvertIf
{
void
invertIf
(
Object
object
)
{
<
caret
>
if
(
object
==
"adf"
)
{
System
.
out
.
println
(
"2"
);
}
else
{
System
.
out
.
println
(
"1"
);
}
// comment
}
}