From f96e88fa129d19f2950dab6887c6be9a311a93cf Mon Sep 17 00:00:00 2001 From: Eugene Vigdorchik Date: Sat, 4 Dec 2004 16:52:02 +0300 Subject: [PATCH] (no message) --- .../siyeh/ig/errorhandling/ThreadDeathRethrownInspection.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/ThreadDeathRethrownInspection.java b/plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/ThreadDeathRethrownInspection.java index 6f08138c46de..1b1b6bf9bf68 100644 --- a/plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/ThreadDeathRethrownInspection.java +++ b/plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/ThreadDeathRethrownInspection.java @@ -35,8 +35,7 @@ public class ThreadDeathRethrownInspection extends StatementInspection { super.visitTryStatement(statement); final PsiParameter[] parameters = statement.getCatchBlockParameters(); final PsiCodeBlock[] catchBlocks = statement.getCatchBlocks(); - final int length = Math.min(parameters.length, catchBlocks.length); - for (int i = 0; i < length; i++) { + for (int i = 0; i < catchBlocks.length; i++) { final PsiParameter parameter = parameters[i]; final PsiCodeBlock catchBlock = catchBlocks[i]; checkCatchBlock(parameter, catchBlock);