Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
codeInsight
/
invertIfCondition
/
afterConditionWithComments.java
blob: 5c4fe80d40466ed47ed8cabfa45d8254c2eba902 [
file
]
// "Invert 'if' condition" "true"
class
A
{
public
void
foo
()
{
String
value
=
"not-null"
;
if
(
value
==
null
)
{
return
;
}
/* block*/
// Before
System
.
out
.
println
(
value
);
/* inside */
System
.
out
.
println
(
value
);
// After
/* end block*/
}
}