RFR: 8302816: Refactor sorting-related classes [v2]

Nir Lisker nlisker at openjdk.org
Wed Apr 26 10:16:54 UTC 2023


> Most of the changes revolve around unifying the sorting methods for a collection with `Comparable` elements with sorting methods that take an external `Comparator` by passing `Comparator.naturalOrder()` from the former to the latter. This eliminates method duplication and some warnings suppressions.
> 
> Note that I get 1 failing test: VersionInfoTest.testMajorVersion. This PR is unrelated to this test.

Nir Lisker has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:

 - Added missing space
 - Merge branch 'master' into 8302816_Refactor_sorting-related_classes
 - Initial commit

-------------

Changes: https://git.openjdk.org/jfx/pull/1041/files
 Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1041&range=01
  Stats: 248 lines in 5 files changed: 27 ins; 125 del; 96 mod
  Patch: https://git.openjdk.org/jfx/pull/1041.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1041/head:pull/1041

PR: https://git.openjdk.org/jfx/pull/1041


More information about the openjfx-dev mailing list