fix invert if followed by break bugs (IDEA-38798 & IDEA-112313)

This commit is contained in:
Bas Leijdekkers
2015-02-02 19:38:41 +01:00
parent 3950eb9ccf
commit facac1bd48
5 changed files with 53 additions and 1 deletions
@@ -0,0 +1,16 @@
// "Invert 'if' condition" "true"
class A {
public boolean accept() {
boolean xx = true;
switch (1) {
case 0:
if (!xx) {
break;
}
else {
return true;
}
}
return false;
}
}