]> source.dussan.org Git - jgit.git/commitdiff
Fix warnings about unchecked conversion of MergeResult 02/66602/1
authorDavid Pursehouse <david.pursehouse@sonymobile.com>
Mon, 15 Feb 2016 09:22:53 +0000 (18:22 +0900)
committerDavid Pursehouse <david.pursehouse@sonymobile.com>
Mon, 15 Feb 2016 09:22:53 +0000 (18:22 +0900)
Change-Id: I1490b2209fa7b39676849c624adbc262a672f6df
Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/MergeAlgorithmTest.java
org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeFormatter.java

index d4a3d62dad2660199cabdd74deeb99c5294e73f8..284657c5981a6c1c88340c84c735911f8d0109ec 100644 (file)
@@ -259,7 +259,7 @@ public class MergeAlgorithmTest {
        }
 
        private String merge(String commonBase, String ours, String theirs) throws IOException {
-               MergeResult r = new MergeAlgorithm().merge(RawTextComparator.DEFAULT,
+               MergeResult<RawText> r = new MergeAlgorithm().merge(RawTextComparator.DEFAULT,
                                T(commonBase), T(ours), T(theirs));
                ByteArrayOutputStream bo=new ByteArrayOutputStream(50);
                fmt.formatMerge(bo, r, "B", "O", "T", Constants.CHARACTER_ENCODING);
index 977f95341fd3aff2e4cd50585c12879a64df00e4..a9a8231eee378fab6e01fa2aa00230e69d20199b 100644 (file)
@@ -102,7 +102,7 @@ public class MergeFormatter {
         *            metadata
         * @throws IOException
         */
-       public void formatMerge(OutputStream out, MergeResult res, String baseName,
+       public void formatMerge(OutputStream out, MergeResult<RawText> res, String baseName,
                        String oursName, String theirsName, String charsetName) throws IOException {
                List<String> names = new ArrayList<String>(3);
                names.add(baseName);