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-3915 SonarQube - Using Wrapper.parseWrapper() when converting String to primitive #4030

Merged
merged 1 commit into from
Jun 11, 2019
Merged

PAYARA-3915 SonarQube - Using Wrapper.parseWrapper() when converting String to primitive #4030

merged 1 commit into from
Jun 11, 2019

Conversation

dvmarcilio
Copy link
Contributor

parseWrapper() avoids creating a boxed primitive, and this is more performant when just the primitive is desired.

This fixes SonarQube violations of the rule: Parsing should be used to convert "Strings" to primitives

parseWrapper() avoids creating a boxed primitive, thus is more
performant when just the primitive is desired.
This fixes multiple SonarQube issues.
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 Thanks again for the contribution.

@jbee
Copy link
Contributor

jbee commented Jun 10, 2019

jenkins test please

@jGauravGupta jGauravGupta added PR: CLA CLA submitted on PR by the contributor community-contribution labels Jun 11, 2019
@jGauravGupta jGauravGupta merged commit 08b353d into payara:master Jun 11, 2019
@Pandrex247 Pandrex247 changed the title SonarQube - Using Wrapper.parseWrapper() when converting String to primitive PAYARA-3915 SonarQube - Using Wrapper.parseWrapper() when converting String to primitive 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.

5 participants