mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-20 19:20:04 +00:00
code formatting
Change-Id: I14029aca7f5bbbdc12fdc6c5864b8740e914408a
This commit is contained in:
1 parent
a983a31037
commit
0b97113dba
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ public class DetailedRaceInfo extends SimpleRaceInfo {
|
|||||||
|
|
||||||
public DetailedRaceInfo(RegattaAndRaceIdentifier identifier, String leaderboardName, TimePoint timePoint,
|
public DetailedRaceInfo(RegattaAndRaceIdentifier identifier, String leaderboardName, TimePoint timePoint,
|
||||||
UUID eventId, URL remoteUrl) {
|
UUID eventId, URL remoteUrl) {
|
||||||
super(identifier, timePoint,remoteUrl);
|
super(identifier, timePoint, remoteUrl);
|
||||||
if (leaderboardName == null || eventId == null) {
|
if (leaderboardName == null || eventId == null) {
|
||||||
throw new IllegalStateException("DetailedRaceInfo Data is not allowed to contain any null values!");
|
throw new IllegalStateException("DetailedRaceInfo Data is not allowed to contain any null values!");
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -30,6 +30,6 @@ public class SimpleRaceInfoJsonSerializer implements JsonSerializer<SimpleRaceIn
|
|||||||
String raceName = object.get(SimpleRaceInfoJsonSerializer.FIELD_RACE_NAME).toString();
|
String raceName = object.get(SimpleRaceInfoJsonSerializer.FIELD_RACE_NAME).toString();
|
||||||
String regattaName = object.get(SimpleRaceInfoJsonSerializer.FIELD_REGATTA_NAME).toString();
|
String regattaName = object.get(SimpleRaceInfoJsonSerializer.FIELD_REGATTA_NAME).toString();
|
||||||
TimePoint startOfRace = new MillisecondsTimePoint(((Number)object.get(SimpleRaceInfoJsonSerializer.FIELD_START_OF_RACE)).longValue());
|
TimePoint startOfRace = new MillisecondsTimePoint(((Number)object.get(SimpleRaceInfoJsonSerializer.FIELD_START_OF_RACE)).longValue());
|
||||||
return new SimpleRaceInfo(new RegattaNameAndRaceName(regattaName, raceName), startOfRace,remoteUrl);
|
return new SimpleRaceInfo(new RegattaNameAndRaceName(regattaName, raceName), startOfRace, remoteUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user