<i18n dev> RFR: 8263561: Re-examine uses of LinkedList
    Сергей Цыпанов 
    github.com+10835776+stsypanov at openjdk.java.net
       
    Mon May 24 07:10:40 UTC 2021
    
    
  
On Fri, 21 May 2021 14:18:16 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 264:
> 
>> 262:                 String jar = jarFiles[i];
>> 263:                 bw.write(jar + "\n");
>> 264:                 ArrayList<String> jarlist = jarMap.get(jar);
> 
> Here again, jarList could probably be declared as `List<String>`
Done
-------------
PR: https://git.openjdk.java.net/jdk/pull/2744
    
    
More information about the i18n-dev
mailing list