On Fri, 22 Sep 2023 07:12:08 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
> I guess in test, resource leak probably wouldn't matter… No, it wouldn't. Yet someone could later copy the code and use file streams where closing the streams matters. Always following the pattern is safer. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15507#discussion_r1334283537