invert if: fix psi replacement (IDEA-174966)

This commit is contained in:
Anna Kozlova
2017-06-26 17:07:29 +03:00
parent 329cc26c29
commit 9e12271bd3
4 changed files with 33 additions and 7 deletions
@@ -0,0 +1,12 @@
// "Invert 'if' condition" "true"
class Main {
Object foo(boolean b1, boolean b2) {
if (b1) {
return null;
} else if (!b<caret>2) {
return "a";
}
return null;
}
}