Rename validateForRevertCommits to validateForGerritCommits

This method can (and should) be used by other features that
perform validation of commits produced by Gerrit (E.g. Gerrit
is the commit author).

For instance revert and upcomming cherry-pick feature.

Change-Id: I0d2e76811af2328c35461e4fe85cb8998781f9f1
This commit is contained in:
Gustaf Lundh
2013-03-11 16:34:48 +01:00
committed by Gerrit Code Review
parent 49e5977df3
commit a10dc82536
2 changed files with 2 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ public class ChangeUtil {
revertCommit, user);
try {
commitValidators.validateForRevertCommits(commitReceivedEvent);
commitValidators.validateForGerritCommits(commitReceivedEvent);
} catch (CommitValidationException e) {
throw new InvalidChangeOperationException(e.getMessage());
}

View File

@@ -120,7 +120,7 @@ public class CommitValidators {
return messages;
}
public List<CommitValidationMessage> validateForRevertCommits(
public List<CommitValidationMessage> validateForGerritCommits(
CommitReceivedEvent receiveEvent) throws CommitValidationException {
List<CommitValidationListener> validators =