> 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: Updated spec of Objects.newIdentity with: "The class does not override any of the methods of {@code java.lang.Object}." ------------- Changes: - all: https://git.openjdk.java.net/jdk17/pull/112/files - new: https://git.openjdk.java.net/jdk17/pull/112/files/bc73f6dd..eef1029c Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk17&pr=112&range=03 - incr: https://webrevs.openjdk.java.net/?repo=jdk17&pr=112&range=02-03 Stats: 1 line in 1 file changed: 1 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