RFR: JDK-8280168 Add Objects.toDefaultString [v3]
Roger Riggs
rriggs at openjdk.java.net
Wed Jan 19 22:31:48 UTC 2022
On Wed, 19 Jan 2022 18:48:48 GMT, Joe Darcy <darcy at openjdk.org> wrote:
>> While it is strongly recommend to not use the default toString for a class, at times it is the least-bad alternative. When that alternative needs to be used, it would be helpful to have the implementation already available, such as in Objects.toDefaultString(). This method is analagous to System.identityHashCode.
>>
>> Please also review the CSR: https://bugs.openjdk.java.net/browse/JDK-8280184
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
>
> Respond to review feedback to augment test.
LGTM, thanks
-------------
Marked as reviewed by rriggs (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/7139
More information about the core-libs-dev
mailing list