aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-11-27 09:14:50 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-11-27 09:14:50 +0100
commit6990f9043c712d601cea7d0875badc1e594e7c85 (patch)
tree5c6492bec4d6635c12a56e2327bff4be30fba223 /sonar-ws
parent7c2cc24167ef1463f58668941f1424fcfb1185f4 (diff)
downloadsonarqube-6990f9043c712d601cea7d0875badc1e594e7c85.tar.gz
sonarqube-6990f9043c712d601cea7d0875badc1e594e7c85.zip
Replace checkNotNull by requireNonNull in sonar-ws
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/WsRequest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/WsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/WsRequest.java
index 8fe8f9941fa..9e4a91f13c4 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/WsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/WsRequest.java
@@ -24,7 +24,7 @@ import java.util.HashMap;
import java.util.Map;
import javax.annotation.Nullable;
-import static com.google.common.base.Preconditions.checkNotNull;
+import static java.util.Objects.requireNonNull;
import static org.sonarqube.ws.client.WsRequest.Method.GET;
import static org.sonarqube.ws.client.WsRequest.Method.POST;
@@ -62,13 +62,13 @@ public class WsRequest {
}
public WsRequest setMediaType(MediaType type) {
- checkNotNull(type);
+ requireNonNull(type);
this.mimeType = type;
return this;
}
public WsRequest setParam(String key, @Nullable Object value) {
- checkNotNull(key, "a WS parameter key cannot be null");
+ requireNonNull(key, "a WS parameter key cannot be null");
if (value != null) {
this.params.put(key, value);
} else {