RFR: 8328821: Map.of() derived view collection mutators should throw UnsupportedOperationException [v5]

Liam Miller-Cushon cushon at openjdk.org
Tue Jul 9 22:40:41 UTC 2024


> This change overrides mutator methods in the implementation returned by `Map.of().entrySet()` to throw `UnsupportedOperationException`.

Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision:

  Update unmodifiable map javadoc

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/18522/files
  - new: https://git.openjdk.org/jdk/pull/18522/files/4c9a511f..8327a8e1

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18522&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18522&range=03-04

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/18522.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18522/head:pull/18522

PR: https://git.openjdk.org/jdk/pull/18522


More information about the core-libs-dev mailing list