aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
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();
* }
* })