Use Comparable.compare() instead of surrogate code

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b03

      Instead of something like

      long x;
      long y;
      (x < y) ? -1 : ((x == y) ? 0 : 1)

      we can use Long.compare(x, y)

            Assignee:
            Sergey Tsypanov
            Reporter:
            Sergey Tsypanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: