On Wed, 9 Jul 2025 18:39:40 GMT, Naoto Sato <na...@openjdk.org> wrote:

> Replaced Collections.emptyList() with List.of() as part of refactoring. This 
> was discussed in the context of investigating a CDS-related issue 
> (https://bugs.openjdk.org/browse/JDK-8357281?focusedId=14796714&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14796714).
>  Although the root cause was ultimately determined to be user error, 
> modernizing the code by using List.of() is still a desirable improvement

Both lists aren't returned to users, so their null-hostile contains behavior 
has no impact.

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

Marked as reviewed by liach (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26225#pullrequestreview-3002824059

Reply via email to