Java inspection: Returned back RemoveRedundantElseAction intention, because it turns out it's useful in some cases (IDEA-157727)

This commit is contained in:
Pavel Dolgov
2016-07-20 18:50:32 +03:00
parent ec05aa8b85
commit b525e80a87
10 changed files with 229 additions and 0 deletions
@@ -0,0 +1,13 @@
// "Remove redundant 'else'" "true"
class a {
void foo() {
int a = 0;
int b = 0;
if (a != b) {
return;
}
a = b;
a++;
}
}