@Override public void initializeGlobalRefinement() { checkState(newPredicates == null); // needs to be a fully deterministic data structure, // thus a Multimap based on a LinkedHashMap // (we iterate over the keys) newPredicates = MultimapBuilder.linkedHashKeys().arrayListValues().build(); }
@Inject MergeOp( AccountCache accountCache, ApprovalsUtil approvalsUtil, ChangeControl.GenericFactory changeControlFactory, ChangeHooks hooks, ChangeIndexer indexer, ChangeMessagesUtil cmUtil, ChangeUpdate.Factory updateFactory, GitReferenceUpdated gitRefUpdated, GitRepositoryManager repoManager, IdentifiedUser.GenericFactory identifiedUserFactory, LabelNormalizer labelNormalizer, EmailMerge.Factory mergedSenderFactory, MergeSuperSet mergeSuperSet, MergeValidators.Factory mergeValidatorsFactory, PatchSetInfoFactory patchSetInfoFactory, ProjectCache projectCache, InternalChangeQuery internalChangeQuery, @GerritPersonIdent PersonIdent serverIdent, SubmitStrategyFactory submitStrategyFactory, Provider<SubmoduleOp> subOpProvider, TagCache tagCache) { this.accountCache = accountCache; this.approvalsUtil = approvalsUtil; this.changeControlFactory = changeControlFactory; this.hooks = hooks; this.indexer = indexer; this.cmUtil = cmUtil; this.updateFactory = updateFactory; this.gitRefUpdated = gitRefUpdated; this.repoManager = repoManager; this.identifiedUserFactory = identifiedUserFactory; this.labelNormalizer = labelNormalizer; this.mergedSenderFactory = mergedSenderFactory; this.mergeSuperSet = mergeSuperSet; this.mergeValidatorsFactory = mergeValidatorsFactory; this.patchSetInfoFactory = patchSetInfoFactory; this.projectCache = projectCache; this.internalChangeQuery = internalChangeQuery; this.serverIdent = serverIdent; this.submitStrategyFactory = submitStrategyFactory; this.subOpProvider = subOpProvider; this.tagCache = tagCache; commits = new HashMap<>(); openRepos = new HashMap<>(); problems = MultimapBuilder.linkedHashKeys().arrayListValues(1).build(); }