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-3916 SonarQube - Optimizing String.lastIndexOf() for single char in appserver #4026

Merged
merged 1 commit into from
Jun 10, 2019
Merged

PAYARA-3916 SonarQube - Optimizing String.lastIndexOf() for single char in appserver #4026

merged 1 commit into from
Jun 10, 2019

Conversation

dvmarcilio
Copy link
Contributor

This pull request contains fixes only for module appserver.

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

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.

Thanks again, @dvmarcilio

@jbee
Copy link
Contributor

jbee commented Jun 10, 2019

jenkins test please

@jbee jbee added PR: CLA CLA submitted on PR by the contributor community-contribution labels Jun 10, 2019
@jbee jbee merged commit b2c0a4b into payara:master Jun 10, 2019
@Pandrex247 Pandrex247 changed the title SonarQube - Optimizing String.lastIndexOf() for single char in appserver PAYARA-3916 SonarQube - Optimizing String.lastIndexOf() for single char in appserver Jun 12, 2019
@arjantijms arjantijms added this to the 5.193 milestone Jul 5, 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.

4 participants