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

Wrong wording in Comparator.compare() method spec

XMLWordPrintable

        This method spec says "In the foregoing description, the notation sgn(expression)...." However, the use of sgn() follows that sentence. "Foregoing" means "preceding" so this is wrong.

        The Comparable.compareTo() method spec has very similar wording, but the definition of sgn() follows its usage. The wording of these method specs should be adjusted so they're correct and consistent with each other.

              smarks Stuart Marks
              smarks Stuart Marks
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: