aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-11-18 16:45:02 -0600
committersonartech <sonartech@sonarsource.com>2021-11-20 20:03:51 +0000
commit3f9445c25962f914ccdd889c002ddd8e19b0cf89 (patch)
treeeb4f34a62b7164a71fd0bbe34d6f59621a687d8d /sonar-ws/src
parentaa640be9e2b9cfa2c027ef0768940b31ebb5536c (diff)
downloadsonarqube-3f9445c25962f914ccdd889c002ddd8e19b0cf89.tar.gz
sonarqube-3f9445c25962f914ccdd889c002ddd8e19b0cf89.zip
Improve code quality
Diffstat (limited to 'sonar-ws/src')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java1
-rw-r--r--sonar-ws/src/test/java/org/sonarqube/ws/client/LocalWsConnectorTest.java6
2 files changed, 3 insertions, 4 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java
index 97b58d3adf3..b97a6d99b58 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java
@@ -19,7 +19,6 @@
*/
package org.sonarqube.ws.client.views;
-import java.util.List;
import javax.annotation.Generated;
/**
diff --git a/sonar-ws/src/test/java/org/sonarqube/ws/client/LocalWsConnectorTest.java b/sonar-ws/src/test/java/org/sonarqube/ws/client/LocalWsConnectorTest.java
index 9969d1977ed..58f6b09db26 100644
--- a/sonar-ws/src/test/java/org/sonarqube/ws/client/LocalWsConnectorTest.java
+++ b/sonar-ws/src/test/java/org/sonarqube/ws/client/LocalWsConnectorTest.java
@@ -78,9 +78,9 @@ public class LocalWsConnectorTest {
verifyRequested("GET", "api/issues/search", MediaTypes.JSON, Collections.<String, String>emptyMap());
assertThat(wsResponse.code()).isEqualTo(200);
- assertThat(wsResponse.content()).isEqualTo("");
- assertThat(IOUtils.toString(wsResponse.contentReader())).isEqualTo("");
- assertThat(IOUtils.toString(wsResponse.contentStream())).isEqualTo("");
+ assertThat(wsResponse.content()).isEmpty();
+ assertThat(IOUtils.toString(wsResponse.contentReader())).isEmpty();
+ assertThat(IOUtils.toString(wsResponse.contentStream())).isEmpty();
assertThat(wsResponse.contentType()).isEqualTo(MediaTypes.JSON);
}