From 65b2116a0e339bffd269f325386cda3b74645f7e Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 13 Mar 2014 23:40:36 +0100 Subject: SONAR-5142 drop search of components by language --- .../main/java/org/sonar/wsclient/services/ResourceQuery.java | 11 ----------- .../java/org/sonar/wsclient/services/ResourceQueryTest.java | 7 ------- 2 files changed, 18 deletions(-) (limited to 'sonar-ws-client') 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 { 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 { 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 { 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 @@ -33,13 +33,6 @@ public class ResourceQueryTest extends QueryTestCase { assertThat(query.isVerbose()).isEqualTo((false)); } - @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(); -- cgit v1.2.3