aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client/src/main/java/org/sonar
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-05-23 17:46:47 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-05-23 17:46:59 +0200
commit9fbe5d985b55f9453fb2c54fc5874304f1c7f09b (patch)
treed3d77789394862da137fb90917c9f13e75e3d1e4 /sonar-ws-client/src/main/java/org/sonar
parentf1187355aa041dc5dd183574bf43a52ca535db5f (diff)
downloadsonarqube-9fbe5d985b55f9453fb2c54fc5874304f1c7f09b.tar.gz
sonarqube-9fbe5d985b55f9453fb2c54fc5874304f1c7f09b.zip
SONAR-3755 fix the deprecated web service /api/violations/index
Diffstat (limited to 'sonar-ws-client/src/main/java/org/sonar')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java
index 38a9fb71a5b..c9f20f9ec9d 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java
@@ -27,15 +27,15 @@ public class ViolationQuery extends Query<Violation> {
public static final String BASE_URL = "/api/violations";
- private String resourceKeyOrId;
+ private String resourceKey;
private int depth = 0;
private String[] qualifiers;
private String[] ruleKeys;
private String[] severities;
private Integer limit;
- public ViolationQuery(String resourceKeyOrId) {
- this.resourceKeyOrId = resourceKeyOrId;
+ public ViolationQuery(String resourceKey) {
+ this.resourceKey = resourceKey;
}
public String[] getQualifiers() {
@@ -116,7 +116,7 @@ public class ViolationQuery extends Query<Violation> {
public String getUrl() {
StringBuilder url = new StringBuilder(BASE_URL);
url.append('?');
- appendUrlParameter(url, "resource", resourceKeyOrId);
+ appendUrlParameter(url, "resource", resourceKey);
if (depth != 0) {
url.append("depth=").append(depth).append("&");
}
@@ -124,7 +124,7 @@ public class ViolationQuery extends Query<Violation> {
appendUrlParameter(url, "qualifiers", qualifiers);
appendUrlParameter(url, "rules", ruleKeys);
appendUrlParameter(url, "priorities", severities);
- return url.toString();
+ return url.toString();
}
@Override