RFR: 8302979: (fs) Files usage of SUPPORTED_CHARSETS could be simplified
Sergey Tsypanov
stsypanov at openjdk.org
Wed Feb 22 07:38:09 UTC 2023
On Wed, 22 Feb 2023 07:00:27 GMT, Julian Waters <jwaters at openjdk.org> wrote:
>> Code of `Files.lines()` could be slightly simplified:
>>
>> - use charsets instead of their names
>> - use `Set.of()` instead of `HashSet` in `FileChannelLinesSpliterator`
>
> Looks fine to me, doesn't seem like the Set used to store the supported charsets is concerned about having anything added to it, so this should pretty much behave the same as before as Alan said
@TheShermanTanker done!
-------------
PR: https://git.openjdk.org/jdk/pull/12688
More information about the nio-dev
mailing list