]> source.dussan.org Git - jgit.git/commitdiff
[findBugs] Don't rely on default encoding 36/22136/2
authorMatthias Sohn <matthias.sohn@sap.com>
Tue, 18 Feb 2014 08:24:30 +0000 (09:24 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 18 Feb 2014 21:08:08 +0000 (22:08 +0100)
Change-Id: I9be2ffe95e8d716326ba63b67672741ac316f9a5
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java

index 4436f6e785a29fc6e1fe5f30d1667685ed80ae3a..4408d7bb354dc29903c7549874b0424aa18accc4 100644 (file)
@@ -328,7 +328,7 @@ public class DiffFormatterTest extends RepositoryTestCase {
                df.format(oldTree, newTree);
                df.flush();
 
-               String actual = os.toString();
+               String actual = os.toString("UTF-8");
                String expected =
  "diff --git a/folder/folder.txt b/folder/folder.txt\n"
                                + "index 0119635..95c4c65 100644\n"