RFR: 8261123: Augment discussion of equivalence classes in Object.equals and comparison methods [v3]

Brian Burkhalter bpb at openjdk.java.net
Wed Feb 10 02:58:38 UTC 2021


On Wed, 10 Feb 2021 01:49:55 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> A follow-up of sorts to JDK-8257086, this change aims to improve the discussion of the relationship between Object.equals and compareTo and compare methods. The not-consistent-with-equals natural ordering of BigDecimal get more explication too. While updating Object, I added some uses of apiNote and implSpec, as appropriate. While a signum method did not exist when Comparable was added, it has existed for many years so I removed obsolete text that defined a "sgn" function to compute signum.
>> 
>> Once the changes are agreed to, I'll reflow paragraphs and update the copyright years.
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix typos in javadoc tags found during review.

Marked as reviewed by bpb (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/2471


More information about the core-libs-dev mailing list