summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
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.junit
parent04bc9b3ddcaa8f1535d90a2f712706c6c5597cd4 (diff)
downloadjgit-a57dd1c1649cb85a2d47690bcea8a6acdc68ce35.tar.gz
jgit-a57dd1c1649cb85a2d47690bcea8a6acdc68ce35.zip
Declare essentially static methods as static
Change-Id: I83ca25fb569c0dbc36eb374d5437fcf2b65a6f68
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java4
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java
index 676698a8e2..1614c379e7 100644
--- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java
+++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java
@@ -162,7 +162,7 @@ public abstract class LocalDiskRepositoryTestCase {
mockSystemReader.setProperty(Constants.GIT_CEILING_DIRECTORIES_KEY, makePath(ceilings));
}
- private String makePath(List<?> objects) {
+ private static String makePath(List<?> objects) {
final StringBuilder stringBuilder = new StringBuilder();
for (Object object : objects) {
if (stringBuilder.length() > 0)
@@ -303,7 +303,7 @@ public abstract class LocalDiskRepositoryTestCase {
toClose.add(r);
}
- private String createUniqueTestFolderPrefix() {
+ private static String createUniqueTestFolderPrefix() {
return "test" + (System.currentTimeMillis() + "_" + (testCount++));
}
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
index cc4852a2bd..9c7570ef61 100644
--- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
+++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
@@ -673,7 +673,7 @@ public class TestRepository<R extends Repository> {
}
}
- private void prunePacked(ObjectDirectory odb) throws IOException {
+ private static void prunePacked(ObjectDirectory odb) throws IOException {
for (PackFile p : odb.getPacks()) {
for (MutableEntry e : p)
FileUtils.delete(odb.fileFor(e.toObjectId()));