mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-02 18:33:54 +00:00
Merge branch 'master' into swisstiming_archiveconnector2
This commit is contained in:
commit
13e4b95bed
2 files changed
+8
-1
No files matched your search
@@ -3,5 +3,12 @@ package com.sap.sailing.domain.base;
|
||||
public interface CourseListener {
|
||||
void waypointAdded(int zeroBasedIndex, Waypoint waypointThatGotAdded);
|
||||
|
||||
/**
|
||||
* @param waypointThatGotRemoved
|
||||
* Note that the waypoint already has been removed. You have to expect exceptions if trying to perform
|
||||
* methods on adjacent legs that would refer to the waypoint that already got removed, in particular
|
||||
* calling {@link Leg#getFrom()} on the leg that starts at the waypoint removed if this was the last
|
||||
* waypoint in the course.
|
||||
*/
|
||||
void waypointRemoved(int zeroBasedIndex, Waypoint waypointThatGotRemoved);
|
||||
}
|
||||
+1
-1
@@ -1402,7 +1402,7 @@ public abstract class TrackedRaceImpl implements TrackedRace, CourseListener {
|
||||
toRemove = last;
|
||||
}
|
||||
if (toRemove != null) {
|
||||
logger.info("Removing tracked leg starting at "+toRemove.getFrom()+" from tracked race "+getRace().getName());
|
||||
logger.info("Removing tracked leg at zero-based index "+zeroBasedIndex+" from tracked race "+getRace().getName());
|
||||
trackedLegs.remove(toRemove);
|
||||
updated(/* time point */null);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user