aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-05-05 11:53:54 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-05-05 12:08:15 +0200
commit56f482bcb257ec41b5e9c0f4e56d85aedcdc393b (patch)
tree3c72340c3bd95dbec8be8dbaae7588bf97098a3e /sonar-plugin-api/src
parent601bd10130d737418a9e49b5c905b608aac787d2 (diff)
downloadsonarqube-56f482bcb257ec41b5e9c0f4e56d85aedcdc393b.tar.gz
sonarqube-56f482bcb257ec41b5e9c0f4e56d85aedcdc393b.zip
SONAR-5111 Use latest API to declare batch WS metadata, update Javadoc
example, add response example for batch WS
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java9
1 files changed, 3 insertions, 6 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 a5ac15ea8d1..c84994096f8 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
@@ -32,13 +32,10 @@ import org.sonar.api.ServerExtension;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
+
import java.io.IOException;
import java.net.URL;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
+import java.util.*;
/**
* Defines a web service. Note that contrary to the deprecated {@link org.sonar.api.web.Webservice}
@@ -67,7 +64,7 @@ import java.util.Set;
* .close();
* }
* })
- * .createParam("key", "Example key");
+ * .createParam("key").setDescription("Example key").setRequired(true);
*
* // important to apply changes
* controller.done();