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

Roger Riggs rriggs at openjdk.java.net
Tue Jun 22 16:18:11 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:

  Update copyright in BasicObjectsTest

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

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

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

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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