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

Brian Burkhalter bpb at openjdk.org
Wed Dec 4 18:28:14 UTC 2024


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

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8345433: Use method ref ServiceLoader.Provider::gget

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22552/files
  - new: https://git.openjdk.org/jdk/pull/22552/files/44401e78..c6f997e6

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

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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