]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2381 temporarily deactivate switch-off property from violations ws
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 22 Apr 2011 08:48:25 +0000 (10:48 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 22 Apr 2011 08:48:25 +0000 (10:48 +0200)
sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java

index 06a75f94c9e288a41769c6c13a814f6056cf5de7..d75e2b64808cbb776fef43f4c964d48d0ef7cfe5 100644 (file)
@@ -31,7 +31,6 @@ public class ViolationQuery extends Query<Violation> {
   private String[] categories;
   private String[] severities;
   private Integer limit;
-  private boolean isSwitchedOff;
 
   public ViolationQuery(String resourceKeyOrId) {
     this.resourceKeyOrId = resourceKeyOrId;
@@ -129,21 +128,6 @@ public class ViolationQuery extends Query<Violation> {
     return this;
   }
 
-  /**
-   * @since 2.8
-   */
-  public ViolationQuery setSwitchedOff(boolean ignore) {
-    this.isSwitchedOff = ignore;
-    return this;
-  }
-
-  /**
-   * @since 2.8
-   */
-  public boolean isSwitchedOff() {
-    return isSwitchedOff;
-  }
-
   @Override
   public String getUrl() {
     StringBuilder url = new StringBuilder(BASE_URL);
@@ -158,7 +142,6 @@ public class ViolationQuery extends Query<Violation> {
     appendUrlParameter(url, "rules", ruleKeys);
     appendUrlParameter(url, "categories", categories);
     appendUrlParameter(url, "priorities", severities);
-    appendUrlParameter(url, "switched_off", isSwitchedOff);
 
     return url.toString();
   }