diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-03-04 15:47:00 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-03-04 17:48:07 +0100 |
commit | 439960f954249a807ea7c11ba86466c026a84233 (patch) | |
tree | f7b73bed399f751e772f268f4e19a2f8101323e4 /server/sonar-server | |
parent | dd17d404a9b1440d45f12e25ad41f294b6b56a34 (diff) | |
download | sonarqube-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.java | 6 |
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()); |