diff --git a/src/main/java/de/dennisguse/opentracks/chart/ChartPoint.java b/src/main/java/de/dennisguse/opentracks/chart/ChartPoint.java index af44edb12..923513c42 100644 --- a/src/main/java/de/dennisguse/opentracks/chart/ChartPoint.java +++ b/src/main/java/de/dennisguse/opentracks/chart/ChartPoint.java @@ -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);