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

Simplify TreeMap.get() with Comparator.naturalOrder()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      TreeMap.get() has two paths for cases when comparator is null and non-null. These can be merged into one using `Comparator.naturalOrder()` for the case TreeMap.comparator is null.

            stsypanov Sergey Tsypanov
            stsypanov Sergey Tsypanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: