Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Ordering.explicit() with Comparator.comparing() #310

Closed
wants to merge 1 commit into from

Conversation

kekkyojin
Copy link
Collaborator

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes)

Fixes

Issue Number: #305

What is the current behavior?

Guava Ordering.explicit() is used which offers the same functionality that standard Comparator

What is the new behavior?

Standard Comparator is being used

Other information

From what I have seen, original code took a List as the sorting order for items, then sorts a List of claims so it matches the first List. This is now be done using Comparator.comparing() instead of using an external library.

@kekkyojin kekkyojin requested a review from akinwale August 9, 2022 11:01
@kekkyojin kekkyojin linked an issue Aug 9, 2022 that may be closed by this pull request
10 tasks
@kekkyojin
Copy link
Collaborator Author

It seems java.util.Comparator hasn’t been included on the desugaring, and the comparing() method requires API Level 24, so I’m cancelling this PR but leaving the bug as opened

@kekkyojin kekkyojin closed this Aug 9, 2022
@kekkyojin kekkyojin removed the request for review from akinwale August 9, 2022 11:34
@kekkyojin kekkyojin deleted the ordering-explicit branch August 9, 2022 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor Guava Ordering class usages to be Stream + Comparator instead
1 participant