Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
codeInsight
/
invertIfCondition
/
afterRedundantParenthesis.java
blob: c491c8a87bdc371bc79c2c9a3a2763b882d0db7c [
file
]
// "Invert 'if' condition" "true"
class
A
{
void
method
(
Object
x
)
{
if
(
x
instanceof
String
)
{
System
.
out
.
println
(((
String
)
x
).
toUpperCase
());
}
else
{
System
.
out
.
println
(
x
.
toString
());
}
}
}