diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ValidRefNameTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ValidRefNameTest.java index 87e901fcf..df5079ae1 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ValidRefNameTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ValidRefNameTest.java @@ -270,8 +270,8 @@ public class ValidRefNameTest { @Test public void testNormalizeBranchName() { - assertEquals(true, Repository.normalizeBranchName(null) == ""); - assertEquals(true, Repository.normalizeBranchName("").equals("")); + assertEquals("", Repository.normalizeBranchName(null)); + assertEquals("", Repository.normalizeBranchName("")); assertNormalized("Bug 12345::::Hello World", "Bug_12345-Hello_World"); assertNormalized("Bug 12345 :::: Hello World", "Bug_12345_Hello_World"); assertNormalized("Bug 12345 :::: Hello::: World",