From: Daniel Schwarz Date: Mon, 29 May 2017 08:34:42 +0000 (+0200) Subject: SONAR-9335 remove deprecated NewAction#createParam X-Git-Tag: 6.5-M1~144 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2052e728cfed8f66e6f86e7a269aa82bcdffc603;p=sonarqube.git SONAR-9335 remove deprecated NewAction#createParam --- diff --git a/server/sonar-server/src/test/java/org/sonar/server/ws/WebServiceEngineTest.java b/server/sonar-server/src/test/java/org/sonar/server/ws/WebServiceEngineTest.java index e3b32235386..7f5682f0164 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/ws/WebServiceEngineTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/ws/WebServiceEngineTest.java @@ -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 errors = new ArrayList<>(); for (int count = 0; count < Integer.valueOf(request.param("count")); count++) { 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 d9184442ac1..bcf44b3dcb9 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 @@ -351,15 +351,6 @@ public interface WebService extends Definable { 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. */