aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-10-16 13:08:08 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-10-16 13:08:08 +0200
commit72615bc2f28b792da4f455553965f873d001bc09 (patch)
tree1201d1c7377be781924629b846381554ed679a57 /sonar-plugin-api
parent201a6d91b04852dc07900a95d31c3b60c8341734 (diff)
downloadsonarqube-72615bc2f28b792da4f455553965f873d001bc09.tar.gz
sonarqube-72615bc2f28b792da4f455553965f873d001bc09.zip
fix error in JsonWriter usage description in javadoc of WebService
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java
index d6a22bd65ba..bdaa27ff1be 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java
@@ -69,7 +69,9 @@ import static com.google.common.base.Preconditions.checkArgument;
* public void handle(Request request, Response response) {
* // read request parameters and generates response output
* response.newJsonWriter()
+ * .beginObject()
* .prop("hello", request.mandatoryParam("key"))
+ * .endObject()
* .close();
* }
* })