made new field RaceStateSerializer.regattaLike final

This commit is contained in:
Axel Uhl committed 2015-05-31 23:45:44 +02:00
1 parent 710c323d55
commit f4370ecd0d
1 file changed
+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;
}
}