CaughtExceptionImmediatelyRethrownInspection: redundant condition removed

This commit is contained in:
Tagir Valeev
2018-01-07 17:01:12 +07:00
parent fd12754e17
commit 4eadf00830
@@ -124,7 +124,7 @@ public class CaughtExceptionImmediatelyRethrownInspection extends BaseInspection
final PsiTryStatement tryStatement = catchSection.getTryStatement();
final PsiCatchSection[] catchSections = tryStatement.getCatchSections();
int index = 0;
while (catchSections[index] != catchSection && index < catchSections.length) {
while (catchSections[index] != catchSection) {
index++;
}
final PsiType type = parameter.getType();