-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Use Comparator factory methods. #8728
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me
@@ -84,7 +84,7 @@ public FuzzyScore(final Locale locale) { | |||
* @return result score | |||
* @throws IllegalArgumentException if the term or query is {@code null} | |||
*/ | |||
public Integer fuzzyScore(final CharSequence term, final CharSequence query) { | |||
public int fuzzyScore(final CharSequence term, final CharSequence query) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was taken from here. Does the apache license allow modifying code? If so, does it require changes to be documented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I undid the change, just in case.
99dc474
to
d1f3f15
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the download dialog, also ListHelper
tests pass, so this is fine
Kudos, SonarCloud Quality Gate passed! |
What is it?
Description of the changes in your PR
Comparator
factory methods.Comparator.comparingDouble()
in the preference search to avoid boxing.Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence