RFR: 8301604: Replace Collections.unmodifiableList with List.of [v3]
Nir Lisker
nlisker at openjdk.org
Thu Feb 2 01:09:35 UTC 2023
On Wed, 1 Feb 2023 23:50:07 GMT, Glavo <duke at openjdk.org> wrote:
>> `List.of` is cleaner, and can slightly reduce the memory footprint for lists of one or two elements.
>>
>> Because `List.of` can only store non-null elements, I have only replaced a few usage.
>>
>> Can someone open an Issue on JBS for me?
>
> Glavo has updated the pull request incrementally with one additional commit since the last revision:
>
> reformat
Marked as reviewed by nlisker (Reviewer).
-------------
PR: https://git.openjdk.org/jfx/pull/1012
More information about the openjfx-dev
mailing list