-
-
Notifications
You must be signed in to change notification settings - Fork 760
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 #2230 equals() func detection #2233
Conversation
The equals() func check should assert that there is exact 1 parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test is missing
Codecov Report
@@ Coverage Diff @@
## master #2233 +/- ##
============================================
+ Coverage 81.35% 81.39% +0.04%
- Complexity 2067 2076 +9
============================================
Files 341 343 +2
Lines 5968 5982 +14
Branches 1086 1086
============================================
+ Hits 4855 4869 +14
Misses 532 532
Partials 581 581
Continue to review full report at Codecov.
|
A wrong overridden equals() function signature should be reported.
That if, the equals() function has a different parameter size.
This could potentially have a minor performance impact.
This checks for a different overridden hashCode() function signature.
This could potentially have a minor performance impact.
This is good to go! |
The equals() func check should assert that there is exact 1 parameter.