From: Simon Brandhof Date: Mon, 7 Dec 2015 17:53:12 +0000 (+0100) Subject: Fix minor quality flaws X-Git-Tag: 5.3-RC1~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1f7717e5e8692486be2cf7ef763c977ee13dc2b5;p=sonarqube.git Fix minor quality flaws --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/dashboard/template/ProjectCustomDashboard.java b/server/sonar-server/src/main/java/org/sonar/server/dashboard/template/ProjectCustomDashboard.java index bb24d96305b..b6cc59a0357 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/dashboard/template/ProjectCustomDashboard.java +++ b/server/sonar-server/src/main/java/org/sonar/server/dashboard/template/ProjectCustomDashboard.java @@ -54,7 +54,7 @@ public final class ProjectCustomDashboard extends DashboardTemplate { return dashboard; } - private void addFirstColumn(Dashboard dashboard) { + private static void addFirstColumn(Dashboard dashboard) { dashboard.addWidget("size", 1); dashboard.addWidget("code_coverage", 1); dashboard.addWidget("duplications", 1); diff --git a/sonar-core/src/main/java/org/sonar/core/issue/IssueUpdater.java b/sonar-core/src/main/java/org/sonar/core/issue/IssueUpdater.java index a495a73d4ae..987ede53b0b 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/IssueUpdater.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/IssueUpdater.java @@ -22,9 +22,7 @@ package org.sonar.core.issue; import com.google.common.base.Function; import com.google.common.base.Joiner; import com.google.common.base.Objects; -import com.google.common.base.Preconditions; import com.google.common.base.Predicate; -import com.google.common.base.Strings; import com.google.common.collect.Collections2; import com.google.common.collect.Sets; import java.util.Calendar;