From ef98c3ec8671f8ba8f0b942c41e305893b3c08f7 Mon Sep 17 00:00:00 2001 From: Tomasz Zarna Date: Thu, 15 Mar 2012 18:04:16 +0100 Subject: [PATCH] Cleanup MergeResult constructors 'mergeStrategy' should be 5th argument, after 'mergeStatus'. Pass 'description' if available. Change-Id: I97cebfe5d7db6247fe899075d917b82955906f85 Signed-off-by: Chris Aniszczyk --- .../src/org/eclipse/jgit/api/MergeResult.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeResult.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeResult.java index fcc3bb65e..c1733f5b7 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeResult.java +++ b/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 * @param mergeStatus * the status the merge resulted in + * @param mergeStrategy + * the used {@link MergeStrategy} * @param lowLevelResults * merge results as returned by * {@link ResolveMerger#getMergeResults()} - * @param mergeStrategy - * the used {@link MergeStrategy} + * @since 2.0 */ public MergeResult(ObjectId newHead, ObjectId base, ObjectId[] mergedCommits, MergeStatus mergeStatus, - Map> lowLevelResults, - MergeStrategy mergeStrategy) { - this(newHead, base, mergedCommits, mergeStatus, mergeStrategy, lowLevelResults, null); + MergeStrategy mergeStrategy, + Map> lowLevelResults) { + this(newHead, base, mergedCommits, mergeStatus, mergeStrategy, + lowLevelResults, null); } /** @@ -207,7 +209,7 @@ public class MergeResult { Map> lowLevelResults, String description) { this(newHead, base, mergedCommits, mergeStatus, mergeStrategy, - lowLevelResults, null, null); + lowLevelResults, null, description); } /**