RFR: 8258514: Replace Collections.unmodifiableList with List.of

Jamil Nimeh jnimeh at openjdk.java.net
Wed Dec 16 17:40:56 UTC 2020


On Wed, 16 Dec 2020 17:13:36 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

> The Collections.unmodifiableList() method could be recurring copy on itself and have potential problems. The List.of() method is solid, and could be used instead.
> 
> Code cleanup, no new regression text.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8258514

Looks fine to me.

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

Marked as reviewed by jnimeh (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/1804



More information about the security-dev mailing list