Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Change constructor visibility in SpeedOrPace class
Browse files Browse the repository at this point in the history
Adjusted the visibility of the constructor in the `SpeedOrPace` abstract inner static class from public to protected. This aligns with best practices for abstract classes and clarifies its intended use.

Ref: Issue regarding the visibility of the constructor in `SpeedOrPace`
  • Loading branch information
rohandhiman03 committed Oct 12, 2023
1 parent 9c52c91 commit bdd138e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ public abstract static class SpeedOrPace extends GenericStatisticsViewHolder {

private final boolean reportSpeed;

public SpeedOrPace(boolean reportSpeed) {
//Change this constructor's visibility to protected
// public SpeedOrPace(boolean reportSpeed) {
// this.reportSpeed = reportSpeed;
// }
protected SpeedOrPace(boolean reportSpeed) {
this.reportSpeed = reportSpeed;
}

Expand Down

0 comments on commit bdd138e

Please sign in to comment.