RFR: 8261123: Augment discussion of equivalence classes in Object.equals and comparison methods [v3]
Joe Darcy
darcy at openjdk.java.net
Thu Feb 11 17:58:41 UTC 2021
On Thu, 11 Feb 2021 04:37:34 GMT, Stuart Marks <smarks at openjdk.org> wrote:
>> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fix typos in javadoc tags found during review.
>
> src/java.base/share/classes/java/util/Comparator.java line 159:
>
>> 157: * and it imposes the same ordering as this comparator. Thus,
>> 158: * {@code comp1.equals(comp2)} implies that {@code signum(comp1.compare(o1,
>> 159: * o2))==signum(comp2.compare(o1, o2))} for every object reference
>
> Maybe make "signum" be a link here, similar to other locations where it's used.
Okay -- I didn't want to go overboard making all the signum references links to the method, but I can change the first occurrence in Comparator.equals to a link.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2471
More information about the core-libs-dev
mailing list