RFR: 8345433: (fs) Use stream to load FileTypeDetectors in Files.probeContentType

Brian Burkhalter bpb at openjdk.org
Wed Dec 4 16:39:57 UTC 2024


Change `FileTypeDetector` list creation to use a stream rather than an iteration and adds.

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

Commit messages:
 - 8345433: (fs) Use stream to load FileTypeDetectors in Files.probeContentType

Changes: https://git.openjdk.org/jdk/pull/22552/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22552&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8345433
  Stats: 9 lines in 2 files changed: 0 ins; 4 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/22552.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22552/head:pull/22552

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


More information about the nio-dev mailing list