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

(coll) Improve Comparator, Comparable javadoc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-libs

      The javadoc for Comparator and Comparable have useless casts
      to Object, like ((Object)x) which are bad style and may in fact
      fail to compile in the presence of generics.

      A cut and paste error in Comparator implies that the ordering
      imposed by a comparator is the "natural ordering", but only
      the Comparable ordering is the "natural ordering".

      The phrase "implement comparable" is *much* clearer when
      a <tt> is added.

      implementer->implementor

      There should be an @param <T>.

      Missing object in method call:

      compare(e1,e2) -> c.compare(e1,e2)
      ###@###.### 2005-04-20 01:01:59 GMT

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: