-
Notifications
You must be signed in to change notification settings - Fork 61
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
hashCode
and toString
should not be called on array
instances. RSPEC-2116
#44
Comments
hashCode
and toString
should not be called on array instances. RSPEC-2116
hashCode
and toString
should not be called on array
instances. RSPEC-2116
This could be generalized with a recipe called "ChangeMethodInvocation" that matches a given method pattern and changes the invocation to an alternate method invocation that has a possibly different "select" and accepts the same arguments. |
Except in this case the arguments are different (as opposed to #43) |
Some implementation notes:
|
Reopened until we also merge in the separate recipes for toString #126 |
More examples with
Strings
https://rules.sonarsource.com/java/RSPEC-2116
The text was updated successfully, but these errors were encountered: