On Fri, 15 Jul 2022 16:06:21 GMT, Ryan Ernst <d...@openjdk.org> wrote:
> This commit guards uses of Files methods returning path streams in > java.base to use try-with-resources. src/java.base/share/classes/jdk/internal/module/ModuleHashes.java line 119: > 117: } > 118: try { > 119: byte[] buf = new byte[32*1024]; Can you move the declaration of bug to before the try? That would reduce the nesting. ------------- PR: https://git.openjdk.org/jdk/pull/9518