Merge branch 'master' into swisstiming_archiveconnector2

This commit is contained in:
Axel Uhl committed 2012-12-18 00:49:36 +01:00
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);
}
@@ -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);
}