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

Commit

Permalink
Merge pull request #138 from ShivamSoni24/charts-40219504
Browse files Browse the repository at this point in the history
Added missing @deprecated javadoc tag
  • Loading branch information
yashbhavsar20 authored Nov 25, 2023
2 parents c27a8a0 + 880d8e5 commit 1c1e4e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/de/dennisguse/opentracks/chart/ChartPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,19 @@ public class ChartPoint {
private Double cadence;
private Double power;

@Deprecated
/**
* This class represents a chart point.
*
* @deprecated This constructor is deprecated and will be removed in a future version.
* Use an alternative constructor or method to create ChartPoint instances.
*/
@Deprecated(since = "1.0", forRemoval = true)
@VisibleForTesting
ChartPoint(double altitude) {
this.altitude = altitude;
}


public ChartPoint(@NonNull TrackStatistics trackStatistics, @NonNull TrackPoint trackPoint, Speed smoothedSpeed, boolean chartByDistance, UnitSystem unitSystem) {
if (chartByDistance) {
timeOrDistance = trackStatistics.getTotalDistance().toKM_Miles(unitSystem);
Expand Down

0 comments on commit 1c1e4e5

Please sign in to comment.