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

PAYARA-3917 SonarQube - Optimizing String.lastIndexOf() for single char in nucleus #4022

Merged
merged 1 commit into from
Jun 10, 2019
Merged

PAYARA-3917 SonarQube - Optimizing String.lastIndexOf() for single char in nucleus #4022

merged 1 commit into from
Jun 10, 2019

Conversation

dvmarcilio
Copy link
Contributor

This pull request contains fixes only for module nucleus.

Replacing String.lastIndexOf("/") with String.lastIndexOf('/') which can be more performant.

This fixes SonarQube violations of the rule: String function use should be optimized for single characters

@jbee jbee self-requested a review June 7, 2019 16:03
Copy link
Contributor

@jbee jbee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dvmarcilio Thank you for the contribution. I don't think you need to sign our CLA for this change. @smillidge Do you agree on the CLA?

@jbee
Copy link
Contributor

jbee commented Jun 7, 2019

jenkins test please

@dvmarcilio
Copy link
Contributor Author

@jbee I actually sent the CLA by e-mail this morning. But either way is fine with me. May I open more pull requests with more issues fixes?

@smillidge smillidge added the PR: CLA CLA submitted on PR by the contributor label Jun 7, 2019
@smillidge
Copy link
Contributor

Yep CLA has been received

@jbee
Copy link
Contributor

jbee commented Jun 8, 2019

@dvmarcilio Great. Sure, help is always welcome. If possible please assign the sonar issues you work on to you so we know they are taken care off.

@jbee jbee merged commit 809ebb8 into payara:master Jun 10, 2019
@Pandrex247 Pandrex247 changed the title SonarQube - Optimizing String.lastIndexOf() for single char in nucleus PAYARA-3917 SonarQube - Optimizing String.lastIndexOf() for single char in nucleus Jun 12, 2019
@arjantijms arjantijms added this to the 5.193 milestone Jul 5, 2019
AlanRoth pushed a commit to AlanRoth/Payara that referenced this pull request Aug 13, 2019
Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
AlanRoth pushed a commit to AlanRoth/Payara that referenced this pull request Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: CLA CLA submitted on PR by the contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants