On Fri, 15 May 2026 03:37:51 GMT, Stuart Marks <[email protected]> wrote:

>> This PR proposes to replace older `Collection.unmodifiable` wrappers with 
>> `Set.of()` instead. This can improve performance, reduce footprint, and 
>> reduce maintenance. There is also occasional use of `Map.of()` in nearby 
>> places where `Set.of()` was introduced.
>> 
>> ---------
>> - [X] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> src/jdk.management/share/classes/com/sun/management/internal/PlatformMBeanProviderImpl.java
>  line 333:
> 
>> 331:             static final HotSpotDiagnostic HS_DIAG_MBEAN = new 
>> HotSpotDiagnostic();
>> 332:         }
>> 333:         return Holder.HS_DIAG_MBEAN;
> 
> This change and the one below seem like they're unrelated to this bug?

I will revert.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/31135#discussion_r3257565030

Reply via email to