Merge changes Iffa8cf76,I2f6067e8,I0adb7642
* changes: RevertSubmission: Remove unused exception declarations Revert: Remove unused attributes CherryPick: Remove unused attributes
This commit is contained in:
commit
1ac8a41f41
@ -39,7 +39,6 @@ import com.google.gerrit.server.project.NoSuchChangeException;
|
||||
import com.google.gerrit.server.project.NoSuchProjectException;
|
||||
import com.google.gerrit.server.project.ProjectCache;
|
||||
import com.google.gerrit.server.submit.IntegrationException;
|
||||
import com.google.gerrit.server.update.BatchUpdate;
|
||||
import com.google.gerrit.server.update.UpdateException;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
@ -52,7 +51,6 @@ public class CherryPick
|
||||
private static final FluentLogger logger = FluentLogger.forEnclosingClass();
|
||||
|
||||
private final PermissionBackend permissionBackend;
|
||||
private final BatchUpdate.Factory updateFactory;
|
||||
private final CherryPickChange cherryPickChange;
|
||||
private final ChangeJson.Factory json;
|
||||
private final ContributorAgreementsChecker contributorAgreements;
|
||||
@ -61,13 +59,11 @@ public class CherryPick
|
||||
@Inject
|
||||
CherryPick(
|
||||
PermissionBackend permissionBackend,
|
||||
BatchUpdate.Factory updateFactory,
|
||||
CherryPickChange cherryPickChange,
|
||||
ChangeJson.Factory json,
|
||||
ContributorAgreementsChecker contributorAgreements,
|
||||
ProjectCache projectCache) {
|
||||
this.permissionBackend = permissionBackend;
|
||||
this.updateFactory = updateFactory;
|
||||
this.cherryPickChange = cherryPickChange;
|
||||
this.json = json;
|
||||
this.contributorAgreements = contributorAgreements;
|
||||
|
@ -40,7 +40,6 @@ import com.google.gerrit.server.project.ContributorAgreementsChecker;
|
||||
import com.google.gerrit.server.project.NoSuchChangeException;
|
||||
import com.google.gerrit.server.project.NoSuchProjectException;
|
||||
import com.google.gerrit.server.project.ProjectCache;
|
||||
import com.google.gerrit.server.update.BatchUpdate;
|
||||
import com.google.gerrit.server.update.UpdateException;
|
||||
import com.google.gerrit.server.util.time.TimeUtil;
|
||||
import com.google.inject.Inject;
|
||||
@ -55,7 +54,6 @@ public class Revert
|
||||
private static final FluentLogger logger = FluentLogger.forEnclosingClass();
|
||||
|
||||
private final PermissionBackend permissionBackend;
|
||||
private final BatchUpdate.Factory updateFactory;
|
||||
private final PatchSetUtil psUtil;
|
||||
private final ChangeJson.Factory json;
|
||||
private final ContributorAgreementsChecker contributorAgreements;
|
||||
@ -65,14 +63,12 @@ public class Revert
|
||||
@Inject
|
||||
Revert(
|
||||
PermissionBackend permissionBackend,
|
||||
BatchUpdate.Factory updateFactory,
|
||||
PatchSetUtil psUtil,
|
||||
ChangeJson.Factory json,
|
||||
ContributorAgreementsChecker contributorAgreements,
|
||||
ProjectCache projectCache,
|
||||
CommitUtil commitUtil) {
|
||||
this.permissionBackend = permissionBackend;
|
||||
this.updateFactory = updateFactory;
|
||||
this.psUtil = psUtil;
|
||||
this.json = json;
|
||||
this.contributorAgreements = contributorAgreements;
|
||||
|
@ -219,8 +219,8 @@ public class RevertSubmission
|
||||
|
||||
private RevertSubmissionInfo revertSubmission(
|
||||
List<ChangeData> changeData, RevertInput revertInput)
|
||||
throws RestApiException, IOException, UpdateException, PermissionBackendException,
|
||||
NoSuchProjectException, ConfigInvalidException, StorageException {
|
||||
throws RestApiException, IOException, UpdateException, ConfigInvalidException,
|
||||
StorageException {
|
||||
|
||||
Multimap<BranchNameKey, ChangeData> changesPerProjectAndBranch = ArrayListMultimap.create();
|
||||
changeData.stream().forEach(c -> changesPerProjectAndBranch.put(c.change().getDest(), c));
|
||||
|
Loading…
Reference in New Issue
Block a user