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>
*/
@Deprecated
public void release() {
- close();
+ // Do nothing.
}
/**
*/
@Override
public void close() {
- // Do nothing.
+ release();
}
}