Verified Commit 24532b6a authored by Marc Brendecke's avatar Marc Brendecke Committed by Jonathan Haas

Dateihandle in DeletedContainerDataIterator korrekt schließen.

parent 109052c9
......@@ -55,8 +55,7 @@ public class DeletedContainerDataIterator implements DataIterator {
public DeletedContainerDataIterator(final BasicContainerFileHandle containerFileHandle) throws PersistenceException {
_containerFileHandle = containerFileHandle;
try {
BufferedRandomAccessFile file = new BufferedRandomAccessFile(containerFileHandle.getFile());
try (BufferedRandomAccessFile file = new BufferedRandomAccessFile(containerFileHandle.getFile())) {
skipContainerHeader(file);
_listOfIndexesDeleted = getListOfIndexesDeleted(file);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment