RFR: 8290504: Close streams returned by ModuleReader::list

Ryan Ernst duke at openjdk.org
Tue Jul 19 14:20:00 UTC 2022


On Tue, 19 Jul 2022 14:07:17 GMT, Ryan Ernst <duke at openjdk.org> wrote:

> This commit ensures streams returned by ModuleReader::list are closed.

Note that ModulePatcher::list delegates to ModuleReader::list, but since the stream it builds closes the underlying stream, the use doesn't need to be closed within the list method.

-------------

PR: https://git.openjdk.org/jdk/pull/9557


More information about the core-libs-dev mailing list