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