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

(coll) Collections.reverseOrder(null) should return Collections.REVERSE_ORDER

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b69
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      Neal Gafter writes:

      The following line in java.util.Collections:

                  return new ReverseComparator(); // Unchecked warning!!

      should be

                  return REVERSE_ORDER; // Unchecked warning!!

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: