diff options
Diffstat (limited to 'org.eclipse.jgit.junit/src')
-rw-r--r-- | org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java | 4 | ||||
-rw-r--r-- | org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java | 2 |
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())); |