public class FixReplacementInterpreter
extends java.lang.Object
FixReplacements.| Constructor and Description |
|---|
FixReplacementInterpreter(FileContentUtil fileContentUtil) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TreeModification> |
toTreeModifications(org.eclipse.jgit.lib.Repository repository,
ProjectState projectState,
org.eclipse.jgit.lib.ObjectId patchSetCommitId,
java.util.List<FixReplacement> fixReplacements)
Transforms the given
FixReplacements into TreeModifications. |
@Inject public FixReplacementInterpreter(FileContentUtil fileContentUtil)
public java.util.List<TreeModification> toTreeModifications(org.eclipse.jgit.lib.Repository repository, ProjectState projectState, org.eclipse.jgit.lib.ObjectId patchSetCommitId, java.util.List<FixReplacement> fixReplacements) throws ResourceNotFoundException, java.io.IOException, ResourceConflictException
FixReplacements into TreeModifications.repository - the affected Git repositoryprojectState - the affected projectpatchSetCommitId - the patch set which should be modifiedfixReplacements - the replacements which should be appliedTreeModifications representing the given replacementsResourceNotFoundException - if a file to which one of the replacements refers doesn't
existResourceConflictException - if the replacements can't be transformed into TreeModificationsjava.io.IOException