On Mon, 5 Oct 2026 17:03:58 GMT, Thomas Zimmermann <[email protected]> wrote:

>> The map is not intended to be exposed to clients, so there's no need to 
>> create a defensive copy.
>
> The idea was to:
> 1. Let the method return an immutable collection in all cases
> 2. Reduce memory consumption ("shrink-wrap" the results)
> 3. Possibly improve performance by using a read optimized collection
> 
> But none of that is critical, it's fine in any case 👍

Ah, thanks for clarifying!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33133#discussion_r4186712499

Reply via email to