[jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v2]

Roger Riggs rriggs at openjdk.java.net
Tue Jun 22 16:08:51 UTC 2021


> Add java.util.Objects.newIdentity to supply a unique object with identity.
> This is a replacement code can be used today for the traditional new Object() idiom, which will be deprecated under Project Valhalla.
> Refer to [JEP 401: Primitive Objects (Preview)](https://openjdk.java.net/jeps/401) for background.

Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:

  Add @see link to java.lang.Object to Objects.newIdentity

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

Changes:
  - all: https://git.openjdk.java.net/jdk17/pull/112/files
  - new: https://git.openjdk.java.net/jdk17/pull/112/files/6c871906..42883a17

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk17&pr=112&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk17&pr=112&range=00-01

  Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/112.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/112/head:pull/112

PR: https://git.openjdk.java.net/jdk17/pull/112


More information about the core-libs-dev mailing list