diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2021-11-24 22:20:50 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2021-11-24 22:21:10 +0100 |
commit | c05d711bb757b0e2705bb22b9710b6be6eb37d99 (patch) | |
tree | c798133c39e1cf5306dc8bf21b71a99301430baa /org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java | |
parent | e3707a6ceac953139234000cfc75f19d93aefb82 (diff) | |
download | jgit-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.java | 3 |
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(); /** |