diff options
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/lib')
3 files changed, 7 insertions, 5 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/BranchConfigTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/BranchConfigTest.java index 4895d3cf1a..63441bfe90 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/BranchConfigTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/BranchConfigTest.java @@ -144,7 +144,7 @@ public class BranchConfigTest { branchConfig.getTrackingBranch()); } - private Config parse(final String content) { + private static Config parse(final String content) { final Config c = new Config(null); try { c.fromText(content); diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java index 63f9476d96..e675609290 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java @@ -465,17 +465,18 @@ public class ConfigTest { assertEquals(result, config.toText()); } - private void assertReadLong(long exp) throws ConfigInvalidException { + private static void assertReadLong(long exp) throws ConfigInvalidException { assertReadLong(exp, String.valueOf(exp)); } - private void assertReadLong(long exp, String act) + private static void assertReadLong(long exp, String act) throws ConfigInvalidException { final Config c = parse("[s]\na = " + act + "\n"); assertEquals(exp, c.getLong("s", null, "a", 0L)); } - private Config parse(final String content) throws ConfigInvalidException { + private static Config parse(final String content) + throws ConfigInvalidException { final Config c = new Config(null); c.fromText(content); return c; diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0002_TreeTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0002_TreeTest.java index dd7d335c81..dca34a0e16 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0002_TreeTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0002_TreeTest.java @@ -61,7 +61,8 @@ public class T0002_TreeTest extends SampleDataRepositoryTestCase { private static final ObjectId SOME_FAKE_ID = ObjectId.fromString( "0123456789abcdef0123456789abcdef01234567"); - private int compareNamesUsingSpecialCompare(String a,String b) throws UnsupportedEncodingException { + private static int compareNamesUsingSpecialCompare(String a, String b) + throws UnsupportedEncodingException { char lasta = '\0'; byte[] abytes; if (a.length() > 0 && a.charAt(a.length()-1) == '/') { |