Integrated: 8302979: (fs) Files usage of SUPPORTED_CHARSETS could be simplified

Sergey Tsypanov stsypanov at openjdk.org
Wed Feb 22 14:13:29 UTC 2023


On Tue, 21 Feb 2023 11:20:01 GMT, Sergey Tsypanov <stsypanov 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`

This pull request has now been integrated.

Changeset: 25bfed3b
Author:    Sergey Tsypanov <stsypanov at openjdk.org>
Committer: Julian Waters <jwaters at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/25bfed3b123ed64055b22c8a9723835d4410362c
Stats:     11 lines in 2 files changed: 0 ins; 3 del; 8 mod

8302979: (fs) Files usage of SUPPORTED_CHARSETS could be simplified

Reviewed-by: alanb, jwaters

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

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


More information about the nio-dev mailing list