aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2021-11-24 22:20:50 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2021-11-24 22:21:10 +0100
commitc05d711bb757b0e2705bb22b9710b6be6eb37d99 (patch)
treec798133c39e1cf5306dc8bf21b71a99301430baa /org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java
parente3707a6ceac953139234000cfc75f19d93aefb82 (diff)
downloadjgit-c05d711bb757b0e2705bb22b9710b6be6eb37d99.tar.gz
jgit-c05d711bb757b0e2705bb22b9710b6be6eb37d99.zip
Let ObjectDatabase implement AutoClosable
Bug: 549777 Change-Id: I09846a0e063aafa77de7e76dbc16c6a67d13b5e5
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java
index 293efe46eb..04262c07ae 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java
@@ -21,7 +21,7 @@ import org.eclipse.jgit.errors.MissingObjectException;
* An object database stores one or more Git objects, indexed by their unique
* {@link org.eclipse.jgit.lib.ObjectId}.
*/
-public abstract class ObjectDatabase {
+public abstract class ObjectDatabase implements AutoCloseable {
/**
* Initialize a new database instance for access.
*/
@@ -74,6 +74,7 @@ public abstract class ObjectDatabase {
/**
* Close any resources held by this database.
*/
+ @Override
public abstract void close();
/**