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

Small search handler improvement #143

Conversation

sclassen
Copy link
Contributor

PR Checklist

  • There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open an issue first and wait for approval before working on it.
  • The code follows the Google Java Style Guide.
  • JavaDoc is added / changed for public methods.
  • An example of the new feature is added to the demos.
  • Documentation of the feature is included in the README.
  • Tests for the changes are included.

What is the current behavior?

Behavior is unchanged

What is the new behavior?

There is a slight performance gain because of short cutting in case the category or group description matches the search text

Is related to #94

Breaking Change:

none

this is a minor speed improvement as it will not dive into groups or settings if a higher level already matches the searchText
@sclassen
Copy link
Contributor Author

@martinfrancois
Maybe you understand what exactly codeclimate means. If I remove the "unused" parameters the code does no longer compile 🙄

@sclassen
Copy link
Contributor Author

sclassen commented Oct 21, 2019

Found it: https://jira.sonarsource.com/browse/SONARJAVA-2115
It is fixed in SonarJava 5.0 which was released in Dez 2017.
But it looks like codeclimate still uses 4.14 (https://docs.codeclimate.com/docs/sonar-java)

@dlemmermann dlemmermann merged commit 01ae1fd into dlsc-software-consulting-gmbh:master Aug 31, 2020
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.

2 participants