InvertIfCondition: some fixes for non-compilable code

This commit is contained in:
Tagir Valeev
2017-04-10 12:09:51 +07:00
parent f4c6d909ab
commit 3da23def83
5 changed files with 49 additions and 6 deletions
@@ -0,0 +1,11 @@
// "Invert 'if' condition" "true"
class A {
public boolean foo() {
if (!null) {
return true;
}
else {
return false;
}
}
}