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

liach duke at openjdk.java.net
Wed Mar 9 15:50:03 UTC 2022


On Wed, 9 Mar 2022 09:37:30 GMT, Сергей Цыпанов <duke at openjdk.java.net> wrote:

>> 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?

probably keep it. this can be updated in the patch for that bug.

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

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



More information about the security-dev mailing list