> 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).
Per Minborg has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains nine additional commits since the last revision: - Revoke changes - Merge branch 'master' into rfe-use-set-factories - Update copyright year - Use List.of - Optimize ArrayList usage - Merge branch 'master' into rfe-use-set-factories - Add additional Set/Map of() - Update copyright year - Use Set.of ------------- Changes: - all: https://git.openjdk.org/jdk/pull/31135/files - new: https://git.openjdk.org/jdk/pull/31135/files/3b1b8b22..d147c1b8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=31135&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31135&range=00-01 Stats: 3452 lines in 1229 files changed: 1404 ins; 369 del; 1679 mod Patch: https://git.openjdk.org/jdk/pull/31135.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31135/head:pull/31135 PR: https://git.openjdk.org/jdk/pull/31135
