diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-05-23 17:46:47 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-05-23 17:46:59 +0200 |
commit | 9fbe5d985b55f9453fb2c54fc5874304f1c7f09b (patch) | |
tree | d3d77789394862da137fb90917c9f13e75e3d1e4 /sonar-ws-client/src/main/java/org/sonar | |
parent | f1187355aa041dc5dd183574bf43a52ca535db5f (diff) | |
download | sonarqube-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.java | 10 |
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 |