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:
@@ -36,13 +36,7 @@ public class ErrorRethrownInspection extends StatementInspection {
|
||||
public void visitTryStatement(PsiTryStatement statement) {
|
||||
super.visitTryStatement(statement);
|
||||
final PsiParameter[] parameters = statement.getCatchBlockParameters();
|
||||
if (parameters == null) {
|
||||
return;
|
||||
}
|
||||
final PsiCodeBlock[] catchBlocks = statement.getCatchBlocks();
|
||||
if (catchBlocks == null) {
|
||||
return;
|
||||
}
|
||||
final int length = Math.min(parameters.length, catchBlocks.length);
|
||||
for (int i = 0; i < length; i++) {
|
||||
final PsiParameter parameter = parameters[i];
|
||||
|
||||
@@ -35,12 +35,6 @@ public class ThreadDeathRethrownInspection extends StatementInspection {
|
||||
super.visitTryStatement(statement);
|
||||
final PsiParameter[] parameters = statement.getCatchBlockParameters();
|
||||
final PsiCodeBlock[] catchBlocks = statement.getCatchBlocks();
|
||||
if (parameters == null) {
|
||||
return;
|
||||
}
|
||||
if (catchBlocks == null) {
|
||||
return;
|
||||
}
|
||||
final int length = Math.min(parameters.length, catchBlocks.length);
|
||||
for (int i = 0; i < length; i++) {
|
||||
final PsiParameter parameter = parameters[i];
|
||||
|
||||
@@ -81,7 +81,7 @@ public class UnusedCatchParameterInspection extends StatementInspection {
|
||||
|
||||
final PsiCodeBlock[] catchBlocks = statement.getCatchBlocks();
|
||||
final PsiParameter[] params = statement.getCatchBlockParameters();
|
||||
for (int i = 0; i < Math.min(catchBlocks.length, params.length); i++) {
|
||||
for (int i = 0; i < catchBlocks.length; i++) {
|
||||
final PsiCodeBlock block = catchBlocks[i];
|
||||
final PsiParameter param = params[i];
|
||||
if (m_ignoreCatchBlocksWithComments) {
|
||||
|
||||
@@ -73,8 +73,7 @@ public class UnnecessaryFinalOnLocalVariableInspection extends MethodInspection
|
||||
final PsiParameter[] catchBlockParameters =
|
||||
statement.getCatchBlockParameters();
|
||||
final PsiCodeBlock[] catchBlocks = statement.getCatchBlocks();
|
||||
final int numBlocks = Math.min(catchBlocks.length, catchBlockParameters.length);
|
||||
for (int i = 0; i < numBlocks; i++) {
|
||||
for (int i = 0; i < catchBlocks.length; i++) {
|
||||
final PsiCodeBlock catchBlock = catchBlocks[i];
|
||||
final PsiParameter parameter = catchBlockParameters[i];
|
||||
if (parameter.hasModifierProperty(PsiModifier.FINAL) &&
|
||||
|
||||
Reference in New Issue
Block a user