diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2014-03-13 23:40:36 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2014-03-13 23:40:36 +0100 |
commit | 65b2116a0e339bffd269f325386cda3b74645f7e (patch) | |
tree | 9ee2fe865e4e70305f4aa8b33cd792e58b468b61 /sonar-ws-client | |
parent | f1aa867803fcde98aba1f27865d70d5ff6e6b50d (diff) | |
download | sonarqube-65b2116a0e339bffd269f325386cda3b74645f7e.tar.gz sonarqube-65b2116a0e339bffd269f325386cda3b74645f7e.zip |
SONAR-5142 drop search of components by language
Diffstat (limited to 'sonar-ws-client')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/services/ResourceQuery.java | 11 | ||||
-rw-r--r-- | sonar-ws-client/src/test/java/org/sonar/wsclient/services/ResourceQueryTest.java | 7 |
2 files changed, 0 insertions, 18 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ResourceQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ResourceQuery.java index a6ea0cbbf33..2d06ec99efc 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ResourceQuery.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ResourceQuery.java @@ -34,7 +34,6 @@ public class ResourceQuery extends Query<Resource> { private String[] rules; private String[] ruleSeverities; private String[] characteristicKeys; - private String[] languages; private boolean excludeRules = true; private boolean excludeRuleSeverities = true; private Boolean includeTrends = null; @@ -130,15 +129,6 @@ public class ResourceQuery extends Query<Resource> { return this; } - public String[] getLanguages() { - return languages; - } - - public ResourceQuery setLanguages(String... languages) { - this.languages = languages; - return this; - } - /** * @deprecated since 2.5 See http://jira.codehaus.org/browse/SONAR-2007 */ @@ -284,7 +274,6 @@ public class ResourceQuery extends Query<Resource> { appendRuleField(url, "rule_priorities", excludeRuleSeverities, ruleSeverities); appendUrlParameter(url, "includetrends", includeTrends); appendUrlParameter(url, "characteristics", characteristicKeys); - appendUrlParameter(url, "languages", languages); appendUrlParameter(url, "includealerts", includeAlerts); appendUrlParameter(url, "verbose", verbose); return url.toString(); diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/services/ResourceQueryTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/services/ResourceQueryTest.java index b1e3b3248da..54cec20583b 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/services/ResourceQueryTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/services/ResourceQueryTest.java @@ -34,13 +34,6 @@ public class ResourceQueryTest extends QueryTestCase { } @Test - public void resourceByLanguages() { - ResourceQuery query = new ResourceQuery("org.foo:bar").setLanguages("java,php"); - assertThat(query.getUrl()).isEqualTo(("/api/resources?resource=org.foo%3Abar&languages=java%2Cphp&verbose=false&")); - assertThat(query.getResourceKeyOrId()).isEqualTo(("org.foo:bar")); - } - - @Test public void measures() { ResourceQuery query = new ResourceQuery(); query.setMetrics("loc", "coverage", "lines"); |