Avoid PMD warning.

This commit is contained in:
Henning von Bargen
2021-03-12 11:58:37 +01:00
parent 56fed34113
commit 9d66782457

View File

@ -38,13 +38,13 @@ public class ASTInput extends net.sourceforge.pmd.lang.plsql.ast.AbstractPLSQLNo
private int excludedRangesCount = 0; private int excludedRangesCount = 0;
private int excludedLinesCount = 0; private int excludedLinesCount = 0;
/** /**
Let the user know that a range of lines were excluded from parsing. Let the user know that a range of lines were excluded from parsing.
@param first First line of the exlucded line range (1-based). @param first First line of the exlucded line range (1-based).
@param last Last line of the exlucded line range (1-based). @param last Last line of the exlucded line range (1-based).
*/ */
void addExcludedLineRange(int first, int last) { void addExcludedLineRange(int first, int last) {
excludedLinesCount += (last - first + 1); excludedLinesCount += last - first + 1;
excludedRangesCount += 1; excludedRangesCount += 1;
} }