Fix ObjectReader resources leak

In 77030a5e, AutoClosable was implemented on classes that use release().
This caused a resource leak because the ObjectReader.close method  was
not calling the now deprecated release method, which is the method that
sub classes implements to release resources.

Change-Id: I247651ec8fd7ca9941d256ca46d14cc43cc35c6e
Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
This commit is contained in:
Hugo Arès 2015-05-15 15:15:28 -04:00
parent b35b09d09a
commit 9d6507ba4d
1 changed files with 2 additions and 2 deletions

View File

@ -429,7 +429,7 @@ public BitmapIndex getBitmapIndex() throws IOException {
*/ */
@Deprecated @Deprecated
public void release() { public void release() {
close(); // Do nothing.
} }
/** /**
@ -442,6 +442,6 @@ public void release() {
*/ */
@Override @Override
public void close() { public void close() {
// Do nothing. release();
} }
} }