mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 17:21:00 +00:00
Merge bug3212 into bug2851
This commit is contained in:
commit
da5fd5cc7d
3 files changed
+7
-4
No files matched your search
+2
-1
@@ -49,7 +49,8 @@ public class RaceLogFixedMarkPassingEventImpl extends RaceLogEventImpl implement
|
||||
|
||||
@Override
|
||||
public String getShortInfo() {
|
||||
return getInvolvedBoats().get(0).getName() + " at mark " + getZeroBasedIndexOfPassedWaypoint() + " at "
|
||||
return (getInvolvedBoats() == null || getInvolvedBoats().get(0) == null ? "Unknown" :
|
||||
getInvolvedBoats().get(0).getName()) + " at mark " + getZeroBasedIndexOfPassedWaypoint() + " at "
|
||||
+ getTimePointOfFixedPassing();
|
||||
}
|
||||
}
|
||||
+5
@@ -40,4 +40,9 @@ public class RaceLogDefineMarkEventImpl extends AbstractDefineMarkEventImpl<Race
|
||||
return Collections.<Competitor>emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getShortInfo() {
|
||||
return mark.toString();
|
||||
}
|
||||
|
||||
}
|
||||
-3
@@ -75,7 +75,4 @@ public class MarkImpl extends NamedImpl implements Mark {
|
||||
public String toString() {
|
||||
return getId() + " " + (getColor() == null ? "" : (getColor() + " ")) + super.toString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user