<i18n dev> RFR: 8284780: Need methods to create pre-sized HashSet and LinkedHashSet [v17]

XenoAmess duke at openjdk.java.net
Wed Jun 8 17:49:40 UTC 2022


On Wed, 1 Jun 2022 18:26:17 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> XenoAmess has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   do it as naotoj said
>
> src/java.base/share/classes/java/util/Calendar.java line 2648:
> 
>> 2646:             set.add("gregory");
>> 2647:             set.add("buddhist");
>> 2648:             set.add("japanese");
> 
> This can be replaced with `SET = Set.of("gregory", "buddhist", "japanese");`.

@naotoj Yes it can. I did a further clean up to it, please have a look.

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

PR: https://git.openjdk.java.net/jdk/pull/8302


More information about the i18n-dev mailing list