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

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation. #4

Closed
VishalPeruma1 opened this issue Feb 11, 2024 · 0 comments

Comments

@VishalPeruma1
Copy link
Collaborator

Screenshot 2024-02-11 135655

Description of Technical Debt:
The function is empty as there is no need for the ClockViewHolder to update its view every time there is a change. An empty method is generally considered bad practice and can lead to confusion, readability, and maintenance issues. To remedy that we give a comment explaining why it is empty.

Technical Debt Location
src/main/java/de/dennisguse/opentracks/viewmodels/ClockViewHolder.java

@VishalPeruma1 VishalPeruma1 added this to the Case Study 1 milestone Feb 11, 2024
VishalPeruma1 added a commit that referenced this issue Feb 11, 2024
VishalPeruma1 added a commit that referenced this issue Feb 11, 2024
fix: issue #4, adding comment to empty class.
@VishalPeruma1 VishalPeruma1 self-assigned this Feb 11, 2024
parsa-mre pushed a commit that referenced this issue Apr 7, 2024
Removal of Empty statements in ChartView.java
parsa-mre pushed a commit that referenced this issue Apr 7, 2024
parsa-mre pushed a commit that referenced this issue Apr 7, 2024
parsa-mre pushed a commit that referenced this issue Apr 7, 2024
parsa-mre pushed a commit that referenced this issue Apr 7, 2024
Issue #4 is solved by using a more specific exception, such as Unsupp…
parsa-mre pushed a commit that referenced this issue Apr 7, 2024
Replace "replaceAll()" by a call to the "replace()" method.
VishalPeruma1 pushed a commit that referenced this issue Apr 26, 2024
VishalPeruma1 pushed a commit that referenced this issue Apr 26, 2024
Added Shortest wait at chairlift Widget
VishalPeruma1 pushed a commit that referenced this issue Apr 26, 2024
1. Updated string.xml to fix error in screenshot #1 (src\main\res\values\strings.xml)
2. Updated build.gradle to fix error in screenshot #2 (src\main\res\layout\fragment_runs_stat.xml)
3. Updated src\main\java\de\dennisguse\opentracks\stats\TrackStatisticsUpdater.java to fix error in screenshot #3
4. Commented out code in src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/SeasonStats/RunAndChairStatActivity.java and src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/SeasonStats/SeasonStatActivity.java to fix error in screenshot #4
5. Commented out code in  src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/AggregatedStatisticsAdapter.java to fix error in screenshot #5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant