diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-03-18 16:21:56 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-03-18 18:09:35 +0100 |
commit | 31be229d3a4cce43aeee5e2c7561fcfb6d10a2be (patch) | |
tree | fe49da69b3f45c8f86b760ce64ff0351ff360429 /sonar-ws | |
parent | 7e6a5ce62b86627c20e040cd358cb75a9d35d2da (diff) | |
download | sonarqube-31be229d3a4cce43aeee5e2c7561fcfb6d10a2be.tar.gz sonarqube-31be229d3a4cce43aeee5e2c7561fcfb6d10a2be.zip |
SONAR-7375 WS api/rules/search rename PARAM_KEY to PARAM_RULE_KEY
Diffstat (limited to 'sonar-ws')
3 files changed, 5 insertions, 5 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesService.java index 4dcbdf521e2..3fa569bfcca 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesService.java @@ -30,7 +30,7 @@ import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_ACTIVE_SEVERI import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_AVAILABLE_SINCE; import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_INHERITANCE; import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_IS_TEMPLATE; -import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_KEY; +import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_RULE_KEY; import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_LANGUAGES; import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_QPROFILE; import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_REPOSITORIES; @@ -63,7 +63,7 @@ public class RulesService extends BaseService { .setParam("q", request.getQuery()) .setParam(PARAM_QPROFILE, request.getQProfile()) .setParam(PARAM_REPOSITORIES, inlineMultipleParamValue(request.getRepositories())) - .setParam(PARAM_KEY, request.getRuleKey()) + .setParam(PARAM_RULE_KEY, request.getRuleKey()) .setParam("s", request.getSort()) .setParam(PARAM_SEVERITIES, inlineMultipleParamValue(request.getSeverities())) .setParam(PARAM_STATUSES, inlineMultipleParamValue(request.getStatuses())) diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesWsParameters.java index 3060d43fc50..e69b3d52e3d 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesWsParameters.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/rule/RulesWsParameters.java @@ -25,7 +25,7 @@ import java.util.Set; public class RulesWsParameters { public static final String PARAM_REPOSITORIES = "repositories"; - public static final String PARAM_KEY = "rule_key"; + public static final String PARAM_RULE_KEY = "rule_key"; public static final String PARAM_ACTIVATION = "activation"; public static final String PARAM_QPROFILE = "qprofile"; public static final String PARAM_SEVERITIES = "severities"; diff --git a/sonar-ws/src/test/java/org/sonarqube/ws/client/rule/RulesServiceTest.java b/sonar-ws/src/test/java/org/sonarqube/ws/client/rule/RulesServiceTest.java index d07af4d26ad..211de126eb0 100644 --- a/sonar-ws/src/test/java/org/sonarqube/ws/client/rule/RulesServiceTest.java +++ b/sonar-ws/src/test/java/org/sonarqube/ws/client/rule/RulesServiceTest.java @@ -37,7 +37,7 @@ import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_ACTIVE_SEVERI import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_AVAILABLE_SINCE; import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_INHERITANCE; import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_IS_TEMPLATE; -import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_KEY; +import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_RULE_KEY; import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_LANGUAGES; import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_QPROFILE; import static org.sonarqube.ws.client.rule.RulesWsParameters.PARAM_REPOSITORIES; @@ -127,7 +127,7 @@ public class RulesServiceTest { .hasParam("q", QUERY_VALUE) .hasParam(PARAM_QPROFILE, QPROFILE_VALUE) .hasParam(PARAM_REPOSITORIES, REPOSITORIES_VALUE_INLINED) - .hasParam(PARAM_KEY, RULE_KEY_VALUE) + .hasParam(PARAM_RULE_KEY, RULE_KEY_VALUE) .hasParam(PARAM_LANGUAGES, LANGUAGES_VALUE_INLINED) .hasParam("s", SORT_VALUE) .hasParam(PARAM_SEVERITIES, SEVERITIES_VALUE_INLINED) |