Use try-with-resource on the ModuleReader

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

Commit messages:
 - 8373699: JLink: ModuleReader should be closed in 
JlinkTask.getReleaseInfo(mref)

Changes: https://git.openjdk.org/jdk/pull/29376/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29376&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8373699
  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/29376.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29376/head:pull/29376

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

Reply via email to