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:
parent
b35b09d09a
commit
9d6507ba4d
|
@ -429,7 +429,7 @@ public BitmapIndex getBitmapIndex() throws IOException {
|
|||
*/
|
||||
@Deprecated
|
||||
public void release() {
|
||||
close();
|
||||
// Do nothing.
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -442,6 +442,6 @@ public void release() {
|
|||
*/
|
||||
@Override
|
||||
public void close() {
|
||||
// Do nothing.
|
||||
release();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue