RFR: 8290316: Ensure that all directory streams are closed in java.base [v3]

Ryan Ernst duke at openjdk.org
Mon Jul 18 14:02:47 UTC 2022


> This commit guards uses of Files methods returning path streams in
> java.base to use try-with-resources.

Ryan Ernst has updated the pull request incrementally with one additional commit since the last revision:

  fix compile and address more feedback

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/9518/files
  - new: https://git.openjdk.org/jdk/pull/9518/files/c0a09f91..b5076b1a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9518&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9518&range=01-02

  Stats: 4 lines in 2 files changed: 1 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/9518.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9518/head:pull/9518

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


More information about the core-libs-dev mailing list