2, 2024 1:42 PM
> *To:* core-libs-dev@openjdk.org
> *Subject:* Object creation from iterating Map.of()/Set.of()/List.of()
>
> The newer “of” methods in collections are really nice, they make creating
> these collections much easier and often result in better performance.
> However,
See: https://bugs.openjdk.org/browse/JDK-8193128
Jason
From: core-libs-dev on behalf of Ryan Ernst
Sent: Friday, February 2, 2024 1:42 PM
To: core-libs-dev@openjdk.org
Subject: Object creation from iterating Map.of()/Set.of()/List.of()
The newer “of” methods
The newer “of” methods in collections are really nice, they make creating these
collections much easier and often result in better performance.
However, the empty collection cases with Map.of()/Set.of()/List.of() has one
small downside. The implementations within ImmutableCollections use
non-sp