This commit is contained in:
Bas Leijdekkers
2011-02-20 09:14:00 +01:00
parent 970250fd72
commit 76ff5325b4
@@ -418,14 +418,7 @@ public class IfCanBeSwitchInspection extends BaseInspection {
switchStatementText.append(breakLabelString);
switchStatementText.append(';');
} else {
final String identifierText = identifier.getText();
if ("".equals(identifierText)) {
switchStatementText.append("break ");
switchStatementText.append(breakLabelString);
switchStatementText.append(';');
} else {
switchStatementText.append(text);
}
switchStatementText.append(text);
}
} else if (element instanceof PsiBlockStatement ||
element instanceof PsiCodeBlock ||