RFR: 8290359: Ensure that all directory streams are closed in jdk.link

Chris Hegarty chegar at openjdk.org
Mon Jul 18 15:45:52 UTC 2022


On Fri, 15 Jul 2022 16:18:17 GMT, Ryan Ernst <duke at openjdk.org> wrote:

> This commit adds try-with-resources for uses of Stream<Path> from Files
> methods that walk directories.

Changes requested by chegar (Reviewer).

src/jdk.jlink/share/classes/jdk/tools/jlink/internal/JlinkTask.java line 834:

> 832:                                         name.endsWith(".EC") ||
> 833:                                         name.startsWith("META-INF/SIG-")
> 834:                         );

Trivially, can we please keep the indentation consistent with the previous version. So, align all `name.endsWith` expressions under the 's' from startsWith.

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

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


More information about the core-libs-dev mailing list