RFR: 8333774: Avoid eagerly loading various EmptySpliterator classes [v3]
Claes Redestad
redestad at openjdk.org
Fri Jun 7 14:53:15 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>
Thanks! Yes, the best holder for a singleton is typically the class itself 😄
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19591#issuecomment-2155003099
More information about the core-libs-dev
mailing list