From 880d8e54f1f6bf83b5fb08ca40895dcdf74c22b1 Mon Sep 17 00:00:00 2001 From: yashbhavsar20 <88206430+yashbhavsar20@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:24:00 -0400 Subject: [PATCH] Added missing @deprecated javadoc tag Added 'since' and/or 'ForRemoval' arguments to the @Deprecated annotation. --- .../java/de/dennisguse/opentracks/chart/ChartPoint.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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);