[jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v3]
Chris Hegarty
chegar at openjdk.java.net
Tue Jun 22 18:04:27 UTC 2021
On Tue, 22 Jun 2021 16:18:11 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> 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
src/java.base/share/classes/java/util/Objects.java line 492:
> 490: /**
> 491: * {@return a new instance of an unspecified class}
> 492: * The object has a unique identity; no other references to it exist.
Is this a new javadoc style/tag ?
-------------
PR: https://git.openjdk.java.net/jdk17/pull/112
More information about the core-libs-dev
mailing list