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