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

Issue #1: Technical Debt - Issue in src/.../stats/TrackStatistics.java about overriding hashCode() method #16

Closed
SonamChugh13 opened this issue Feb 14, 2024 · 0 comments · Fixed by #15
Labels
Milestone

Comments

@SonamChugh13
Copy link
Owner

Screenshot 2024-02-10 at 11 40 40

Description:
Classes overriding equals() method must also override hashCode() method in order for the class functionality to work correctly. In the TrackStatistics.java class, equals() method has been defined while hashCode() is not.

Location of the issue: TrackStatistics.java
File path: src/main/java/de/dennisguse/opentracks/stats/TrackStatistics.java

Reason for change: To make sure, class functionality works correctly when containers like map are used.

@SonamChugh13 SonamChugh13 added this to the Case Study 1 milestone Feb 14, 2024
@SonamChugh13 SonamChugh13 linked a pull request Feb 14, 2024 that will close this issue
SonamChugh13 pushed a commit that referenced this issue Mar 14, 2024
#14 Refactored updateRecordingDataWhileRecording method for encapsula…
SonamChugh13 pushed a commit that referenced this issue Mar 14, 2024
removed the deprecated methods
SonamChugh13 pushed a commit that referenced this issue Mar 14, 2024
Closes #16

This commit resolves the OMD violation and brings the codebase in line with the established coding standards.
emeka-okechukwu pushed a commit that referenced this issue Apr 27, 2024
Making the class as Final to avoid exception
emeka-okechukwu pushed a commit that referenced this issue Apr 27, 2024
Seasons Favorite lifts and merge conflicts fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant