Distance.ZERO as constant.

This commit is contained in:
Dennis Guse
2025-11-02 08:32:04 +01:00
parent fffeb40200
commit 6e4d46a14d
13 changed files with 30 additions and 28 deletions
@@ -124,7 +124,7 @@ public class GPXTrackExporter implements TrackExporter {
private void writeTrackPoints(Track track) throws InterruptedException {
boolean wroteTrack = false;
boolean wroteSegment = false;
Distance trackDistance = Distance.of(0);
Distance trackDistance = Distance.ZERO;
LinkedList<TrackPoint> sensorPoints = new LinkedList<>();
@@ -383,7 +383,7 @@ public class GPXTrackExporter implements TrackExporter {
if (cumulativeDistance != null) {
return cumulativeDistance;
}
return Distance.of(0);
return Distance.ZERO;
}
private Double cumulateSensorData(TrackPoint trackPoint, List<TrackPoint> sensorPoints, Function<TrackPoint, Double> map) {