On Wed, 16 Dec 2020 17:13:36 GMT, Xue-Lei Andrew Fan <xue...@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 This pull request has now been integrated. Changeset: efd61c6f Author: Xue-Lei Andrew Fan <xue...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/efd61c6f Stats: 6 lines in 3 files changed: 0 ins; 3 del; 3 mod 8258514: Replace Collections.unmodifiableList with List.of Reviewed-by: jnimeh ------------- PR: https://git.openjdk.java.net/jdk/pull/1804