diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeFormatter.java b/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeFormatter.java index 895d94b21..479670873 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeFormatter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeFormatter.java @@ -83,7 +83,7 @@ public class MergeFormatter { @Deprecated public void formatMerge(OutputStream out, MergeResult res, List seqName, String charsetName) throws IOException { - new MergeFormatterPass(out, res, seqName, charsetName).formatMerge(); + formatMerge(out, res, seqName, Charset.forName(charsetName)); } /** diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeFormatterPass.java b/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeFormatterPass.java index a1b627701..e1a8d3110 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeFormatterPass.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeFormatterPass.java @@ -68,31 +68,6 @@ class MergeFormatterPass { // a conflict /** - * @deprecated use - * {@link #MergeFormatterPass(OutputStream, MergeResult, List, Charset)} - * instead. - * @param out - * the {@link java.io.OutputStream} where to write the textual - * presentation - * @param res - * the merge result which should be presented - * @param seqName - * When a conflict is reported each conflicting range will get a - * name. This name is following the "<<<<<<< - * " or ">>>>>>> " conflict markers. The - * names for the sequences are given in this list - * @param charsetName - * the name of the character set used when writing conflict - * metadata - */ - @Deprecated - MergeFormatterPass(OutputStream out, MergeResult res, List seqName, - String charsetName) { - this(out, res, seqName, Charset.forName(charsetName)); - } - - /** - * * @param out * the {@link java.io.OutputStream} where to write the textual * presentation