(coll) Improve Comparator, Comparable javadoc

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 6
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: