Skip to content

Sonar quality bugfix and minor refactor #530

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

Merged
merged 2 commits into from
Dec 24, 2016
Merged

Sonar quality bugfix and minor refactor #530

merged 2 commits into from
Dec 24, 2016

Conversation

valdar-hu
Copy link
Contributor

Sonar bug fixes using Yoda condition in equals expression when comparing String literal with String object.
Using try-with-resources if we use Scanner to close the underlying stream is a good practice to handle resources.
Minimal refactor.

…ing String literal with String object.

Using try-with-resources if we use Scanner to close the underlying stream is a good practice to handle resources.
Minimal refactor.
…ing String literal with String object.

Using try-with-resources if we use Scanner to close the underlying stream is a good practice to handle resources.
Minimal refactor.
@galistvan
Copy link

awesome :)

@iluwatar iluwatar self-requested a review December 24, 2016 10:35
@iluwatar iluwatar self-assigned this Dec 24, 2016
@iluwatar iluwatar merged commit ad93184 into iluwatar:master Dec 24, 2016
@iluwatar
Copy link
Owner

@Valdar-Soft thank you for this improvement! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants