On 27/06/2019 05:28, Jaikiran Pai wrote:
:

2. Have the close() method call the end() method

One subtle point is that end() is not idempotent. The close() method defined by AutoCloseable is not required be to either but we should try hard to specify Inflater::close to be idempotent. It might need a bit of heroics to get this right because Inflater is not final and end() might be overridden.

-Alan

Reply via email to