RFR: 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path [v2]
Lance Andersen
lancea at openjdk.java.net
Thu Aug 12 19:27:44 UTC 2021
On Thu, 12 Aug 2021 18:55:08 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Lance Andersen has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Use toList()
>
> test/jdk/java/nio/file/spi/SetDefaultProvider.java line 107:
>
>> 105: .map(path -> path.getFileName().toString())
>> 106: .filter(f -> f.startsWith("TestProvider"))
>> 107: .collect(Collectors.toList());
>
> Nit: Could simply issue `.toList()` here.
Thank you Naoto, it is a bit cleaner so pushed the update.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5103
More information about the nio-dev
mailing list