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>tags/v4.0.0.201505260635-rc2
@@ -429,7 +429,7 @@ public abstract class ObjectReader implements AutoCloseable { | |||
*/ | |||
@Deprecated | |||
public void release() { | |||
close(); | |||
// Do nothing. | |||
} | |||
/** | |||
@@ -442,6 +442,6 @@ public abstract class ObjectReader implements AutoCloseable { | |||
*/ | |||
@Override | |||
public void close() { | |||
// Do nothing. | |||
release(); | |||
} | |||
} |