mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 15:06:56 +07:00
(no message)
This commit is contained in:
@@ -37,8 +37,7 @@ public class ErrorRethrownInspection 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);
|
||||
|
||||
Reference in New Issue
Block a user