From c761abccb5c2a3a64e36f4bcafc21b111c591346 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Tue, 29 May 2012 12:01:20 +0200 Subject: [PATCH] Fix serialization violation --- .../java/org/sonar/server/startup/RegisterNewDashboards.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewDashboards.java b/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewDashboards.java index d601f2de2c5..4bdf52b9ad9 100644 --- a/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewDashboards.java +++ b/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewDashboards.java @@ -35,6 +35,7 @@ import org.sonar.core.dashboard.WidgetPropertyDto; import org.sonar.core.template.LoadedTemplateDao; import org.sonar.core.template.LoadedTemplateDto; +import java.io.Serializable; import java.util.Date; import java.util.List; import java.util.Map.Entry; @@ -146,7 +147,9 @@ public final class RegisterNewDashboards { return loadedTemplateDao.countByTypeAndKey(LoadedTemplateDto.DASHBOARD_TYPE, dashboardName) == 0; } - private static class DashboardOrdering extends Ordering { + private static class DashboardOrdering extends Ordering implements Serializable { + private static final long serialVersionUID = 0; + @Override public int compare(DashboardDto d1, DashboardDto d2) { // the default dashboard must be the first one to be activated -- 2.39.5