aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-12-15 11:57:04 +0100
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2012-12-27 12:08:06 -0500
commita57dd1c1649cb85a2d47690bcea8a6acdc68ce35 (patch)
tree6c846d6dd1ebe008d4eb41650a5e98d4dfbbc30f /org.eclipse.jgit.test/tst/org/eclipse/jgit/lib
parent04bc9b3ddcaa8f1535d90a2f712706c6c5597cd4 (diff)
downloadjgit-a57dd1c1649cb85a2d47690bcea8a6acdc68ce35.tar.gz
jgit-a57dd1c1649cb85a2d47690bcea8a6acdc68ce35.zip
Declare essentially static methods as static
Change-Id: I83ca25fb569c0dbc36eb374d5437fcf2b65a6f68
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/lib')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/BranchConfigTest.java2
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java7
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0002_TreeTest.java3
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) == '/') {