From 8fe327a8a1d03d508b878f21a8f0c60b401ff0b7 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Tue, 18 Feb 2014 09:23:13 +0100 Subject: [PATCH] [findBugs] Don't call toString() on a string Change-Id: I0b91ffd473e2f14623ddf409e4f0f342c8941e42 Signed-off-by: Matthias Sohn --- .../tst/org/eclipse/jgit/diff/DiffFormatterTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 145d89902..4436f6e78 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 @@ -337,7 +337,7 @@ public class DiffFormatterTest extends RepositoryTestCase { + "\\ No newline at end of file\n" + "+folder change\n" + "\\ No newline at end of file\n"; - assertEquals(expected.toString(), actual); + assertEquals(expected, actual); } private static String makeDiffHeader(String pathA, String pathB,