Browse Source

Cleanup MergeResult constructors

'mergeStrategy' should be 5th argument, after 'mergeStatus'. Pass
'description' if available.

Change-Id: I97cebfe5d7db6247fe899075d917b82955906f85
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
stable-2.0
Tomasz Zarna 13 years ago committed by Chris Aniszczyk
parent
commit
ef98c3ec86
  1. 14
      org.eclipse.jgit/src/org/eclipse/jgit/api/MergeResult.java

14
org.eclipse.jgit/src/org/eclipse/jgit/api/MergeResult.java

@ -170,17 +170,19 @@ public class MergeResult {
* all the commits which have been merged together * all the commits which have been merged together
* @param mergeStatus * @param mergeStatus
* the status the merge resulted in * the status the merge resulted in
* @param mergeStrategy
* the used {@link MergeStrategy}
* @param lowLevelResults * @param lowLevelResults
* merge results as returned by * merge results as returned by
* {@link ResolveMerger#getMergeResults()} * {@link ResolveMerger#getMergeResults()}
* @param mergeStrategy * @since 2.0
* the used {@link MergeStrategy}
*/ */
public MergeResult(ObjectId newHead, ObjectId base, public MergeResult(ObjectId newHead, ObjectId base,
ObjectId[] mergedCommits, MergeStatus mergeStatus, ObjectId[] mergedCommits, MergeStatus mergeStatus,
Map<String, org.eclipse.jgit.merge.MergeResult<?>> lowLevelResults, MergeStrategy mergeStrategy,
MergeStrategy mergeStrategy) { Map<String, org.eclipse.jgit.merge.MergeResult<?>> lowLevelResults) {
this(newHead, base, mergedCommits, mergeStatus, mergeStrategy, lowLevelResults, null); this(newHead, base, mergedCommits, mergeStatus, mergeStrategy,
lowLevelResults, null);
} }
/** /**
@ -207,7 +209,7 @@ public class MergeResult {
Map<String, org.eclipse.jgit.merge.MergeResult<?>> lowLevelResults, Map<String, org.eclipse.jgit.merge.MergeResult<?>> lowLevelResults,
String description) { String description) {
this(newHead, base, mergedCommits, mergeStatus, mergeStrategy, this(newHead, base, mergedCommits, mergeStatus, mergeStrategy,
lowLevelResults, null, null); lowLevelResults, null, description);
} }
/** /**

Loading…
Cancel
Save