aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-10-06 15:01:27 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-10-06 15:01:38 +0200
commit61388ef867ca83f58636499231105f78e4fbbbcb (patch)
tree7c4e653057894eca4458ef86f73f76a6723be25f
parent38127ca743bc2dea853f681f7f6b5901678e9c3c (diff)
downloadsonarqube-61388ef867ca83f58636499231105f78e4fbbbcb.tar.gz
sonarqube-61388ef867ca83f58636499231105f78e4fbbbcb.zip
Fix some quality flaws
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/ui/ws/ComponentNavigationAction.java3
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/ui/ws/GlobalNavigationAction.java2
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/ui/ws/SettingsNavigationAction.java2
3 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/ui/ws/ComponentNavigationAction.java b/server/sonar-server/src/main/java/org/sonar/server/ui/ws/ComponentNavigationAction.java
index 9847442329f..a4f7debdffa 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/ui/ws/ComponentNavigationAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/ui/ws/ComponentNavigationAction.java
@@ -49,7 +49,6 @@ import org.sonar.db.dashboard.ActiveDashboardDao;
import org.sonar.db.dashboard.DashboardDto;
import org.sonar.db.property.PropertyDto;
import org.sonar.db.property.PropertyQuery;
-import org.sonar.server.activity.ws.ActivitiesWs;
import org.sonar.server.component.ComponentFinder;
import org.sonar.server.computation.ws.ActivityWsAction;
import org.sonar.server.ui.ViewProxy;
@@ -178,7 +177,7 @@ public class ComponentNavigationAction implements NavigationWsAction {
json.endArray();
}
- private String getPageUrl(ViewProxy<Page> page, ComponentDto component) {
+ private static String getPageUrl(ViewProxy<Page> page, ComponentDto component) {
String result;
String componentKey = encodeComponentKey(component);
if (page.isController()) {
diff --git a/server/sonar-server/src/main/java/org/sonar/server/ui/ws/GlobalNavigationAction.java b/server/sonar-server/src/main/java/org/sonar/server/ui/ws/GlobalNavigationAction.java
index 748d4bd18d8..5e50dd7ef8d 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/ui/ws/GlobalNavigationAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/ui/ws/GlobalNavigationAction.java
@@ -78,7 +78,7 @@ public class GlobalNavigationAction implements NavigationWsAction {
json.endObject().close();
}
- private void writeDashboards(JsonWriter json, List<DashboardDto> dashboards) {
+ private static void writeDashboards(JsonWriter json, List<DashboardDto> dashboards) {
json.name("globalDashboards").beginArray();
for (DashboardDto dashboard : dashboards) {
json.beginObject()
diff --git a/server/sonar-server/src/main/java/org/sonar/server/ui/ws/SettingsNavigationAction.java b/server/sonar-server/src/main/java/org/sonar/server/ui/ws/SettingsNavigationAction.java
index bba8ce6de58..d2daca17dc7 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/ui/ws/SettingsNavigationAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/ui/ws/SettingsNavigationAction.java
@@ -83,7 +83,7 @@ public class SettingsNavigationAction implements NavigationWsAction {
json.endObject().close();
}
- private String getPageUrl(ViewProxy<Page> page) {
+ private static String getPageUrl(ViewProxy<Page> page) {
return page.isController() ? page.getId() : String.format("/plugins/configuration/%s", page.getId());
}
}