RFR: JDK-8280168: Add Objects.toIdentityString [v7]
Joe Darcy
darcy at openjdk.java.net
Mon Jan 24 22:10:06 UTC 2022
On Mon, 24 Jan 2022 21:51:13 GMT, Rémi Forax <forax at openjdk.org> wrote:
> toIdentityString is a better name than toDefaultString.
>
> It's fine for me but given that "identity" has a slightly different meaning in the context of Valhalla that in System.identityHashCode(), it may be good to ask Brian about that name.
Modulo the method name, I have discussed with Brian adding a method with toIdentityString's semantics to Objects and he agreed the method was worth having.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7139
More information about the core-libs-dev
mailing list