RFR: 8333774: Avoid eagerly loading various EmptySpliterator classes [v3]
Per Minborg
pminborg at openjdk.org
Fri Jun 7 13:51:13 UTC 2024
On Fri, 7 Jun 2024 13:08:24 GMT, Claes Redestad <redestad at openjdk.org> wrote:
>> Trivially move a few private static finals to their respective source type to avoid eagerly loading a few small classes.
>
> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
>
> Update src/java.base/share/classes/java/util/Spliterators.java
>
> Co-authored-by: Chen Liang <liangchenblue at gmail.com>
Looks good to me. Nice observation, the laziness was for free as existing classes could be reused.
-------------
Marked as reviewed by pminborg (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/19591#pullrequestreview-2104630412
More information about the core-libs-dev
mailing list