Skip to content

Commit

Permalink
renamed validatorsWithParsingErrors to singleFileValidatorsWithParsin…
Browse files Browse the repository at this point in the history
…gErrors
  • Loading branch information
qcdyx committed Sep 11, 2023
1 parent a2298c8 commit 314f78c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
public final class AnyTableLoader {

private static final FluentLogger logger = FluentLogger.forEnclosingClass();
private static final List<Class<? extends FileValidator>> validatorsWithParsingErrors =
private static final List<Class<? extends FileValidator>> singleFileValidatorsWithParsingErrors =
new ArrayList<>();

private static final List<Class<? extends SingleEntityValidator>>
singleEntityValidatorsWithParsingErrors = new ArrayList<>();

public List<Class<? extends FileValidator>> getValidatorsWithParsingErrors() {
return Collections.unmodifiableList(validatorsWithParsingErrors);
return Collections.unmodifiableList(singleFileValidatorsWithParsingErrors);
}

public List<Class<? extends SingleEntityValidator>> getSingleEntityValidatorsWithParsingErrors() {
Expand Down Expand Up @@ -146,7 +146,7 @@ public static GtfsTableContainer load(
GtfsTableContainer table =
tableDescriptor.createContainerForHeaderAndEntities(header, entities, noticeContainer);
ValidatorUtil.invokeSingleFileValidators(
validatorProvider.createSingleFileValidators(table, validatorsWithParsingErrors::add),
validatorProvider.createSingleFileValidators(table, singleFileValidatorsWithParsingErrors::add),
noticeContainer);
return table;
}
Expand Down Expand Up @@ -211,7 +211,7 @@ public static GtfsTableContainer loadMissingFile(
noticeContainer.addValidationNotice(new MissingRequiredFileNotice(gtfsFilename));
}
ValidatorUtil.invokeSingleFileValidators(
validatorProvider.createSingleFileValidators(table, validatorsWithParsingErrors::add),
validatorProvider.createSingleFileValidators(table, singleFileValidatorsWithParsingErrors::add),
noticeContainer);
return table;
}
Expand Down

0 comments on commit 314f78c

Please sign in to comment.