summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-08-30 16:32:30 +0200
committerLuca Milanesio <luca.milanesio@gmail.com>2024-09-03 09:44:26 +0000
commit3682611cef41ade46cf5ac194f0674b46367a395 (patch)
tree26085d31c1e3a11ed45fb97bf6f9c28d0b7241c7 /org.eclipse.jgit.junit
parentd478dd40d55c27da91ffbb9f7e98b9bb11afe629 (diff)
downloadjgit-3682611cef41ade46cf5ac194f0674b46367a395.tar.gz
jgit-3682611cef41ade46cf5ac194f0674b46367a395.zip
Remove deprecated LocalDiskRepositoryTestCase#create(boolean,boolean)
Change-Id: I9eff2d405b5302753ff2ec1d0eab431bdba69fe0
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java23
1 files changed, 1 insertions, 22 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 407290a399..98f69ed31c 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
@@ -422,32 +422,11 @@ public abstract class LocalDiskRepositoryTestCase {
*/
protected FileRepository createRepository(boolean bare)
throws IOException {
- return createRepository(bare, false /* auto close */);
- }
-
- /**
- * Creates a new empty repository.
- *
- * @param bare
- * true to create a bare repository; false to make a repository
- * within its working directory
- * @param autoClose
- * auto close the repository in {@link #tearDown()}
- * @return the newly created repository, opened for access
- * @throws IOException
- * the repository could not be created in the temporary area
- * @deprecated use {@link #createRepository(boolean)} instead
- */
- @Deprecated
- public FileRepository createRepository(boolean bare, boolean autoClose)
- throws IOException {
File gitdir = createUniqueTestGitDir(bare);
FileRepository db = new FileRepository(gitdir);
assertFalse(gitdir.exists());
db.create(bare);
- if (autoClose) {
- addRepoToClose(db);
- }
+ addRepoToClose(db);
return db;
}