RFR: 8345433: (fs) Use stream to load FileTypeDetectors in Files.probeContentType [v2]
Brian Burkhalter
bpb at openjdk.org
Wed Dec 4 18:11:02 UTC 2024
On Wed, 4 Dec 2024 16:57:50 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8345433: Move toList() to separate line
>
> src/java.base/share/classes/java/nio/file/Files.java line 1528:
>
>> 1526: ClassLoader.getSystemClassLoader())
>> 1527: .stream()
>> 1528: .map(p -> p.get()).toList();
>
> Let's move `.toList();` to a separate line
So changed in [44401e7](https://github.com/openjdk/jdk/pull/22552/commits/44401e788d6cd9f3b67a0ba8a67874e8aca7ba6e).
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22552#discussion_r1870043975
More information about the nio-dev
mailing list