BatchUpdateListener: Rename method for consistency

Change-Id: I9cbf70bf852f8da877c84e6791dd9051a262393b
This commit is contained in:
Dave Borowitz
2017-03-13 10:07:32 -04:00
parent b5aea604d6
commit a2661f509a
3 changed files with 4 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ public class SubmitStrategyListener implements BatchUpdateListener {
}
@Override
public void afterRefUpdates() throws ResourceConflictException {
public void afterUpdateRefs() throws ResourceConflictException {
if (failAfterRefUpdates) {
throw new ResourceConflictException("Failing after ref updates");
}

View File

@@ -334,7 +334,7 @@ public class BatchUpdate implements AutoCloseable {
for (BatchUpdate u : updates) {
u.executeRefUpdates(dryrun);
}
listener.afterRefUpdates();
listener.afterUpdateRefs();
for (BatchUpdate u : updates) {
u.reindexChanges(u.executeChangeOps(updateChangesInParallel, dryrun));
}
@@ -352,7 +352,7 @@ public class BatchUpdate implements AutoCloseable {
for (BatchUpdate u : updates) {
u.executeRefUpdates(dryrun);
}
listener.afterRefUpdates();
listener.afterUpdateRefs();
break;
default:
throw new IllegalStateException("invalid execution order: " + order);

View File

@@ -27,7 +27,7 @@ public interface BatchUpdateListener {
default void afterUpdateRepos() throws Exception {}
/** Called after updating all refs. */
default void afterRefUpdates() throws Exception {}
default void afterUpdateRefs() throws Exception {}
/** Called after updating all changes. */
default void afterUpdateChanges() throws Exception {}