]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9335 remove deprecated NewAction#createParam
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>
Mon, 29 May 2017 08:34:42 +0000 (10:34 +0200)
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>
Mon, 29 May 2017 15:23:12 +0000 (17:23 +0200)
server/sonar-server/src/test/java/org/sonar/server/ws/WebServiceEngineTest.java
sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java

index e3b322353867ea9c26428c6721cfb76c4c501226..7f5682f01648194f190218aacae5ab3b64417591 100644 (file)
@@ -347,8 +347,9 @@ public class WebServiceEngineTest {
         .setHandler((request, response) -> {
           throw BadRequestException.create("Bad request !");
         });
-      createNewDefaultAction(newController, "fail_with_multiple_messages")
-        .createParam("count", "Number of error messages to generate")
+      NewAction failWithMultipleMessages = createNewDefaultAction(newController, "fail_with_multiple_messages");
+      failWithMultipleMessages.createParam("count").setDescription("Number of error messages to generate");
+      failWithMultipleMessages
         .setHandler((request, response) -> {
           List<String> errors = new ArrayList<>();
           for (int count = 0; count < Integer.valueOf(request.param("count")); count++) {
index d9184442ac1b1a78ef6896436ed9b5682ced0957..bcf44b3dcb9069b31e01913cd49ccdec745f1855 100644 (file)
@@ -351,15 +351,6 @@ public interface WebService extends Definable<WebService.Context> {
       return newParam;
     }
 
-    /**
-     * @deprecated since 4.4. Use {@link #createParam(String paramKey)} instead.
-     */
-    @Deprecated
-    public NewAction createParam(String paramKey, @Nullable String description) {
-      createParam(paramKey).setDescription(description);
-      return this;
-    }
-
     /**
      * Add predefined parameters related to pagination of results.
      */