fix invalid cast to IsRegattaLike

This commit is contained in:
Fredrik Teschke committed 2014-12-11 17:02:59 +01:00
1 parent bd1a648ba4
commit fa4f5a8018
1 file changed
+2 -2
@@ -347,7 +347,7 @@ public class LeaderboardsResource extends AbstractSailingServerResource {
}
;
IsRegattaLike isRegattaLike = (IsRegattaLike) leaderboard;
IsRegattaLike isRegattaLike = ((HasRegattaLike) leaderboard).getRegattaLike();
DomainFactory domainFactory = getService().getDomainObjectFactory().getBaseDomainFactory();
@@ -433,7 +433,7 @@ public class LeaderboardsResource extends AbstractSailingServerResource {
.build();
}
IsRegattaLike isRegattaLike = (IsRegattaLike) leaderboard;
IsRegattaLike isRegattaLike = ((HasRegattaLike) leaderboard).getRegattaLike();
AbstractLogEventAuthor author = new LogEventAuthorImpl(AbstractLogEventAuthor.NAME_COMPATIBILITY,
AbstractLogEventAuthor.PRIORITY_COMPATIBILITY);