From 1f7717e5e8692486be2cf7ef763c977ee13dc2b5 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 7 Dec 2015 18:53:12 +0100 Subject: [PATCH] Fix minor quality flaws --- .../sonar/server/dashboard/template/ProjectCustomDashboard.java | 2 +- sonar-core/src/main/java/org/sonar/core/issue/IssueUpdater.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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; -- 2.39.5