Skip to content

Commit

Permalink
feat(#3742): shake methods
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Dec 24, 2024
1 parent b26f3d5 commit 02f86f7
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ private EoParserErrors(final List<ParsingException> errors, final Lines lines) {
this.lines = lines;
}

/**
* The number of errors.
* @return The number of errors.
*/
public int size() {
return this.errors.size();
}

@Override
public Iterator<Directive> iterator() {
return new ErrorDirectives(this.errors).iterator();
}

// @checkstyle ParameterNumberCheck (10 lines)
@Override
public void syntaxError(
Expand Down Expand Up @@ -144,17 +157,4 @@ public void syntaxError(
);
}
}

@Override
public Iterator<Directive> iterator() {
return new ErrorDirectives(this.errors).iterator();
}

/**
* The number of errors.
* @return The number of errors.
*/
public int size() {
return this.errors.size();
}
}

0 comments on commit 02f86f7

Please sign in to comment.