From 8971c40d4aa0a8e1bccadb9ae194519ab3e46b3d Mon Sep 17 00:00:00 2001 From: Benjamin Campomenosi Date: Thu, 26 Jan 2023 17:03:36 +0100 Subject: SONAR-17705 Drop deprecated parameters in rules/create endpoint --- .../sonarqube/ws/client/rules/RulesService.java | 24 ---------------------- 1 file changed, 24 deletions(-) (limited to 'sonar-ws') diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/RulesService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/RulesService.java index 134ee08d5a1..645bf890500 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/RulesService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/rules/RulesService.java @@ -77,30 +77,6 @@ public class RulesService extends BaseService { CreateResponse.parser()); } - /** - * - * This is part of the internal API. - * This is a POST request. - * This method is used specifically for sending requests using deprecated parameters for SQ before 9.7. - * @see Further information about this action online (including a response example) - * @since 4.4 - */ - @Deprecated - public void createForSQBefore97(CreateRequest request) { - call( - new PostRequest(path("create")) - .setParam("custom_key", request.getCustomKey()) - .setParam("markdown_description", request.getMarkdownDescription()) - .setParam("name", request.getName()) - .setParam("params", request.getParams() == null ? null : request.getParams().stream().collect(Collectors.joining(","))) - .setParam("prevent_reactivation", request.getPreventReactivation()) - .setParam("severity", request.getSeverity()) - .setParam("status", request.getStatus()) - .setParam("template_key", request.getTemplateKey()) - .setParam("type", request.getType()), - CreateResponse.parser()); - } - /** * * This is part of the internal API. -- cgit v1.2.3