Enable PMD rule AvoidInstanceofChecksInCatchClause and fix violations
This commit is contained in:
parent
30be64cbbe
commit
1bff48b649
2 changed files with 2 additions and 4 deletions
|
|
@ -805,10 +805,9 @@ public abstract class BExpressionContext implements IByteArrayUnifier {
|
|||
for (int i = 0; i < minWriteIdx; i++) {
|
||||
variableData[i] = readOnlyData[i];
|
||||
}
|
||||
} catch (IllegalArgumentException e) {
|
||||
throw new IllegalArgumentException("ParseException " + file + " at line " + linenr + ": " + e.getMessage());
|
||||
} catch (Exception e) {
|
||||
if (e instanceof IllegalArgumentException) {
|
||||
throw new IllegalArgumentException("ParseException " + file + " at line " + linenr + ": " + e.getMessage());
|
||||
}
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (expressionList.size() == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue