RFR: 8282662: Use List/Set.of() factory methods to reduce memory consumption [v2]

Сергей Цыпанов duke at openjdk.java.net
Wed Mar 9 09:41:05 UTC 2022


On Tue, 8 Mar 2022 14:27:23 GMT, liach <duke at openjdk.java.net> wrote:

>> Сергей Цыпанов has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8282662: Revert dubious changes
>
> src/java.base/share/classes/java/nio/file/FileTreeIterator.java line 70:
> 
>> 68:         throws IOException
>> 69:     {
>> 70:         this.walker = new FileTreeWalker(List.of(options), maxDepth);
> 
> Relates to https://bugs.openjdk.java.net/browse/JDK-8145048

Should I keep it as is or revert along with the rest of dubious changes?

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

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



More information about the security-dev mailing list