summaryrefslogtreecommitdiffstats
path: root/server/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-03-04 15:47:00 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-03-04 17:48:07 +0100
commit439960f954249a807ea7c11ba86466c026a84233 (patch)
treef7b73bed399f751e772f268f4e19a2f8101323e4 /server/sonar-server
parentdd17d404a9b1440d45f12e25ad41f294b6b56a34 (diff)
downloadsonarqube-439960f954249a807ea7c11ba86466c026a84233.tar.gz
sonarqube-439960f954249a807ea7c11ba86466c026a84233.zip
Fix quality flaws
Diffstat (limited to 'server/sonar-server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/ws/WebServicesWs.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/ws/WebServicesWs.java b/server/sonar-server/src/main/java/org/sonar/server/ws/WebServicesWs.java
index 301214454fb..1eaaad67b08 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/ws/WebServicesWs.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/ws/WebServicesWs.java
@@ -72,11 +72,11 @@ public class WebServicesWs implements WebService {
.setDefaultValue("false");
}
- private void defineResponseExample(final Context context, NewController controller) {
+ private static void defineResponseExample(final Context context, NewController controller) {
NewAction action = controller
.createAction("response_example")
.setDescription("Display web service response example")
- .setResponseExample(getClass().getResource("response_example-example.json"))
+ .setResponseExample(WebServicesWs.class.getResource("response_example-example.json"))
.setSince("4.4")
.setHandler(new RequestHandler() {
@Override
@@ -161,7 +161,7 @@ public class WebServicesWs implements WebService {
}
}
- private void writeAction(JsonWriter writer, Action action, boolean includeInternals) {
+ private static void writeAction(JsonWriter writer, Action action, boolean includeInternals) {
if (includeInternals || !action.isInternal()) {
writer.beginObject();
writer.prop("key", action.key());