style: enable EqualsHashCode in checkstyle#5157
Merged
vil02 merged 1 commit intoTheAlgorithms:masterfrom May 12, 2024
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5157 +/- ##
============================================
- Coverage 38.25% 38.24% -0.01%
+ Complexity 2362 2361 -1
============================================
Files 516 516
Lines 15304 15305 +1
Branches 2957 2957
============================================
- Hits 5854 5853 -1
- Misses 9164 9165 +1
- Partials 286 287 +1 ☔ View full report in Codecov by Sentry. |
vil02
approved these changes
May 12, 2024
fedecd4 to
1fa0c94
Compare
Member
|
Thanks! I have two remarks:
@Override
public boolean equals(Object obj) {
if (obj instanceof Point other) {
return Arrays.equals(other.coordinates, this.coordinates);
}
return false;
}Would you like to open another PR doing that? |
26 tasks
Contributor
Author
|
Yes I will open another PR with the recommended changes. Thank you! |
This was referenced May 12, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #5119.