]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaws
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 5 Dec 2012 14:06:30 +0000 (15:06 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 5 Dec 2012 14:21:02 +0000 (15:21 +0100)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/MyFavouritesFilter.java
sonar-ws-client/src/main/java/org/sonar/wsclient/connectors/HttpClient4Connector.java

index 849300497b97e90767eafbf8b448dcff290be716..ea66def1484c36ea6aee5d38cde3e370977e23ef 100644 (file)
@@ -20,7 +20,6 @@
 package org.sonar.plugins.core.filters;
 
 import org.sonar.api.measures.CoreMetrics;
-import org.sonar.api.web.Criterion;
 import org.sonar.api.web.Filter;
 import org.sonar.api.web.FilterColumn;
 import org.sonar.api.web.FilterTemplate;
@@ -41,10 +40,10 @@ public class MyFavouritesFilter extends FilterTemplate {
   @Override
   public Filter createFilter() {
     return Filter.create()
-        .setDisplayAs(Filter.LIST)
-        .setFavouritesOnly(true)
-        .add(FilterColumn.create("metric", CoreMetrics.ALERT_STATUS_KEY, FilterColumn.DESC, false))
-        .add(FilterColumn.create("name", null, FilterColumn.ASC, false))
-        .add(FilterColumn.create("date", null, FilterColumn.DESC, false));
+      .setDisplayAs(Filter.LIST)
+      .setFavouritesOnly(true)
+      .add(FilterColumn.create("metric", CoreMetrics.ALERT_STATUS_KEY, FilterColumn.DESC, false))
+      .add(FilterColumn.create("name", null, FilterColumn.ASC, false))
+      .add(FilterColumn.create("date", null, FilterColumn.DESC, false));
   }
 }
index 905f2ef7ba5a0653ed548f48198ceb14585ca0f5..8fe879763b430dd2fa3bd8dc95c8a06c63a6d278 100644 (file)
@@ -32,7 +32,6 @@ import org.apache.http.auth.AuthState;
 import org.apache.http.auth.Credentials;
 import org.apache.http.auth.UsernamePasswordCredentials;
 import org.apache.http.client.CredentialsProvider;
-import org.apache.http.client.HttpClient;
 import org.apache.http.client.methods.HttpDelete;
 import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
 import org.apache.http.client.methods.HttpGet;
@@ -42,7 +41,6 @@ import org.apache.http.client.methods.HttpRequestBase;
 import org.apache.http.client.protocol.ClientContext;
 import org.apache.http.entity.StringEntity;
 import org.apache.http.impl.auth.BasicScheme;
-import org.apache.http.impl.client.AbstractHttpClient;
 import org.apache.http.impl.client.DefaultHttpClient;
 import org.apache.http.params.CoreConnectionPNames;
 import org.apache.http.params.HttpConnectionParams;