summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2014-02-18 09:24:30 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2014-02-18 22:08:08 +0100
commitdb1877628d9846d4716598c1d1af7c76cb3bdb79 (patch)
tree60f3ad09bc85d82a823c4080efaf9988a509792c /org.eclipse.jgit.test
parent8fe327a8a1d03d508b878f21a8f0c60b401ff0b7 (diff)
downloadjgit-db1877628d9846d4716598c1d1af7c76cb3bdb79.tar.gz
jgit-db1877628d9846d4716598c1d1af7c76cb3bdb79.zip
[findBugs] Don't rely on default encoding
Change-Id: I9be2ffe95e8d716326ba63b67672741ac316f9a5 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java
index 4436f6e785..4408d7bb35 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java
@@ -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"