mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
made new field RaceStateSerializer.regattaLike final
This commit is contained in:
1 parent
710c323d55
commit
f4370ecd0d
1 file changed
+5
-3
+5
-3
@@ -26,11 +26,13 @@ import com.sap.sse.common.TimePoint;
|
||||
import com.sap.sse.common.Util.Pair;
|
||||
|
||||
public class RaceStateSerializer implements JsonSerializer<Pair<RaceColumn, Fleet>> {
|
||||
private HasRegattaLike regattaLike = null;
|
||||
private final HasRegattaLike regattaLike;
|
||||
|
||||
public RaceStateSerializer(Leaderboard leaderboard) {
|
||||
if (leaderboard instanceof HasRegattaLike){
|
||||
regattaLike = (HasRegattaLike) leaderboard;
|
||||
if (leaderboard instanceof HasRegattaLike) {
|
||||
regattaLike = (HasRegattaLike) leaderboard;
|
||||
} else {
|
||||
regattaLike = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user