<i18n dev> RFR: 8263561: Re-examine uses of LinkedList

Сергей Цыпанов github.com+10835776+stsypanov at openjdk.java.net
Mon May 24 07:04:05 UTC 2021


On Fri, 21 May 2021 14:15:53 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> The usage of `LinkedList` is senseless and can be replaced with either `ArrayList` or `ArrayDeque` which are both more compact and effective.
>> 
>> jdk:tier1 and jdk:tier2 are both ok
>
> src/java.base/share/classes/jdk/internal/util/jar/JarIndex.java line 155:
> 
>> 153:      */
>> 154:     public List<String> get(String fileName) {
>> 155:         ArrayList<String> jarFiles;
> 
> This could probably be declared as:
> 
> 
> List<String> jarFiles;

Done

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

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


More information about the i18n-dev mailing list