Java: Fixed the intention "Invert 'if' condition" in the case of nested 'if' without braces (IDEA-167957)

This commit is contained in:
Pavel Dolgov
2017-02-20 14:36:31 +03:00
parent 008dea7c9a
commit 1b5600e2c4
9 changed files with 137 additions and 19 deletions
@@ -0,0 +1,9 @@
// "Invert 'if' condition" "true"
class Main {
boolean method(boolean a, boolean b) {
for (int i = 1; i < 10; i++)
<caret>if (!b)
return true;
return false;
}
}