Integrated: 8302816: Refactor sorting-related classes

Nir Lisker nlisker at openjdk.org
Tue May 2 11:22:26 UTC 2023


On Sat, 18 Feb 2023 17:59:12 GMT, Nir Lisker <nlisker at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 50bafc21
Author:    Nir Lisker <nlisker at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/50bafc2120722f51dd5684899f40a40a6705297b
Stats:     249 lines in 5 files changed: 28 ins; 125 del; 96 mod

8302816: Refactor sorting-related classes

Reviewed-by: jhendrikx, arapte

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

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


More information about the openjfx-dev mailing list