]> source.dussan.org Git - sonarqube.git/commitdiff
Fix serialization violation
authorDavid Gageot <david@gageot.net>
Tue, 29 May 2012 10:01:20 +0000 (12:01 +0200)
committerDavid Gageot <david@gageot.net>
Tue, 29 May 2012 10:01:20 +0000 (12:01 +0200)
sonar-server/src/main/java/org/sonar/server/startup/RegisterNewDashboards.java

index d601f2de2c50086a7fc075f24c973b0f5c0688d8..4bdf52b9ad96fa278d40fedb17ab185508e6eb9f 100644 (file)
@@ -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<DashboardDto> {
+  private static class DashboardOrdering extends Ordering<DashboardDto> 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