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

Brian Burkhalter bpb at openjdk.org
Wed Dec 4 20:30:43 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 pull request has now been integrated.

Changeset: 1d3dcdf2
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1d3dcdf2d635dd74a7de5284f5531d0cc8b6b09e
Stats:     9 lines in 2 files changed: 0 ins; 3 del; 6 mod

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

Reviewed-by: rriggs, alanb, aturbanov

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

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


More information about the nio-dev mailing list