From 4eadf008307106924f15de648fc55489799e8f7b Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Sun, 7 Jan 2018 17:01:12 +0700 Subject: [PATCH] CaughtExceptionImmediatelyRethrownInspection: redundant condition removed --- .../CaughtExceptionImmediatelyRethrownInspection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/errorhandling/CaughtExceptionImmediatelyRethrownInspection.java b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/errorhandling/CaughtExceptionImmediatelyRethrownInspection.java index 446500bfe588..1f854152a3fd 100644 --- a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/errorhandling/CaughtExceptionImmediatelyRethrownInspection.java +++ b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/errorhandling/CaughtExceptionImmediatelyRethrownInspection.java @@ -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();