Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8310033

Clarify return value of Java Time compareTo methods

    XMLWordPrintable

Details

    • b09
    • Verified

    Backports

      Description

        The description of java.util.Instant.compareTo(Instant) is not clear that a negative value is "before", zero is equal, and positive is "after".

        Other java.time classes also describe the compareTo result as the comparator value and do not mention zero.

        Attachments

          Issue Links

            Activity

              People

                rriggs Roger Riggs
                rriggs Roger Riggs
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: