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 293efe46e..04262c07a 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 @@ * 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 void create() throws IOException { /** * Close any resources held by this database. */ + @Override public abstract void close(); /**