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
On Wed, 4 Dec 2024 16:34:20 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Change `FileTypeDetector` list creation to use a stream rather than an iteration and adds.
This change was suggested [here](https://github.com/openjdk/jdk/pull/22132#discussion_r1844185396) by @RogerRiggs.
An unused variable in `AsynchronousChannelProvider` is incidentally removed as suggested [here](https://github.com/openjdk/jdk/pull/22132#discussion_r1847879204) by @turbanoff.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22552#issuecomment-2517975343
More information about the nio-dev
mailing list