summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2016-02-12 14:10:12 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2016-02-12 14:10:12 +0900
commit35ba741cd4d2371606a20f55e275bcf41c600aea (patch)
treec7d33786c20e9f3e851a59909e088513fd0e2eae
parent101ac16e8d5874da9dacb99ecd72aa286128d6c9 (diff)
downloadjgit-35ba741cd4d2371606a20f55e275bcf41c600aea.tar.gz
jgit-35ba741cd4d2371606a20f55e275bcf41c600aea.zip
ObjectDirectoryTest: Fix warnings about variable hiding
The variable and parameter named 'db' were hiding class members with the same name. Change-Id: I27017afdc5f49c38c6f5be494e7a21239ea601a7 Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ObjectDirectoryTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ObjectDirectoryTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ObjectDirectoryTest.java
index 3226f42e07..923f283894 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ObjectDirectoryTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ObjectDirectoryTest.java
@@ -62,18 +62,18 @@ public class ObjectDirectoryTest extends RepositoryTestCase {
throws Exception {
ExecutorService e = Executors.newCachedThreadPool();
for (int i=0; i < 100; ++i) {
- ObjectDirectory db = createBareRepository().getObjectDatabase();
- for (Future f : e.invokeAll(blobInsertersForTheSameFanOutDir(db))) {
+ ObjectDirectory dir = createBareRepository().getObjectDatabase();
+ for (Future f : e.invokeAll(blobInsertersForTheSameFanOutDir(dir))) {
f.get();
}
}
}
private Collection<Callable<ObjectId>> blobInsertersForTheSameFanOutDir(
- final ObjectDirectory db) {
+ final ObjectDirectory dir) {
Callable<ObjectId> callable = new Callable<ObjectId>() {
public ObjectId call() throws Exception {
- return db.newInserter().insert(Constants.OBJ_BLOB, new byte[0]);
+ return dir.newInserter().insert(Constants.OBJ_BLOB, new byte[0]);
}
};
return Collections.nCopies(4, callable);