aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2017-01-27 12:05:12 +0900
committerMatthias Sohn <matthias.sohn@sap.com>2017-01-28 17:46:27 +0100
commit5d0ca36d39fda934ca3304f2227afd4f93700393 (patch)
tree6903a7c754e646cfd30d627f65b2494ba2d36441 /org.eclipse.jgit.junit
parenta9a3af4af766830a717b0a4239b4d17b42d6ad51 (diff)
downloadjgit-5d0ca36d39fda934ca3304f2227afd4f93700393.tar.gz
jgit-5d0ca36d39fda934ca3304f2227afd4f93700393.zip
LocalDiskRepositoryTestCase: Only add to toClose through access method
Only using the access method means we only have one place where the toClose set is modified, making it easier to debug either by adding log statements or by setting a breakpoint. Change-Id: I4f9f1774d5f2e10bcab381edfd84bb6ee0499a11 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java2
1 files changed, 1 insertions, 1 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 0a6defc3e2..42e201e932 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
@@ -364,7 +364,7 @@ public abstract class LocalDiskRepositoryTestCase {
FileRepository db = new FileRepository(gitdir);
assertFalse(gitdir.exists());
db.create(bare);
- toClose.add(db);
+ addRepoToClose(db);
return db;
}