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

fix: Calling toString() on an array #3134

Merged
merged 1 commit into from
Oct 4, 2019

Conversation

HarisAdzemovic
Copy link
Contributor

Hi,

This resolves a bug reported by Sonarqube regarding calling toString() on arrays.
The bug in question: https://rules.sonarsource.com/java/RSPEC-2116

Calling toString() on an array is almost never correct as it doesn't return the content of the array.
To do so, one should use the Java.utils.Arrays class.

This fixes Sonarqube bug https://rules.sonarsource.com/java/RSPEC-2116.
@monperrus
Copy link
Collaborator

Cool, thanks. What's the link to the original non-sniper diff?

@HarisAdzemovic
Copy link
Contributor Author

Cool, thanks. What's the link to the original non-sniper diff?

ASSERT-KTH/sorald@768226d#diff-1a8e53c42d6c51f619e61dae05085c17

@nharrand nharrand merged commit 5ac8374 into INRIA:master Oct 4, 2019
@nharrand
Copy link
Collaborator

nharrand commented Oct 4, 2019

Thanks! (And congratz on your first Spoon commit!)

@monperrus monperrus mentioned this pull request Nov 6, 2019
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.

3 participants