use of com.google.gerrit.server.git.validators.OnSubmitValidationListener.Arguments in project gerrit by GerritCodeReview.
the class OnSubmitValidators method validate.
public void validate(Project.NameKey project, ObjectReader objectReader, ChainedReceiveCommands commands) throws IntegrationConflictException {
try (RevWalk rw = new RevWalk(objectReader)) {
Arguments args = new Arguments(project, rw, commands);
listeners.runEach(l -> l.preBranchUpdate(args), ValidationException.class);
} catch (ValidationException e) {
throw new IntegrationConflictException(e.getMessage(), e);
}
}
Aggregations