]> source.dussan.org Git - jgit.git/commit
Remove AutoCloseable from internal PackFile and friends 93/43493/2
authorShawn Pearce <spearce@spearce.org>
Tue, 10 Mar 2015 00:47:45 +0000 (17:47 -0700)
committerShawn Pearce <spearce@spearce.org>
Tue, 10 Mar 2015 00:59:09 +0000 (20:59 -0400)
commit7ab6ffdf501e53dda33335723df783a171b7e964
tree663754b620eb3a676d68ee7004a0814075c9ffb4
parentce3997344ecb564f2af95fd366303e2c9d70143d
Remove AutoCloseable from internal PackFile and friends

PackFile is held by the block cache and cannot be auto closed in a
try-with-resources statement.  Remove the interface as JGit does
explicit management of the instances.

ObjectDatabase and RefDatabase are internal details of Repository
and are managed with the Repository. Marking them AutoCloseable
provides no value to the library or an application using the API.

Change-Id: Ibee19eadd66233e6666b601583daa1834a7778f1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackFile.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefDatabase.java