BatchUpdateListener: Rename method for consistency
Change-Id: I9cbf70bf852f8da877c84e6791dd9051a262393b
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user