diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-08-04 15:29:06 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-08-06 09:05:46 +0200 |
commit | b4e4af137329f4c90e6365e233cdcba3a5322697 (patch) | |
tree | b6a87f57f5acb37e51ecb8bdc7d7eb2cae8be23f /sonar-plugin-api/src | |
parent | 4d119d3c92675105c46ead03ca6eeadb540b7987 (diff) | |
download | sonarqube-b4e4af137329f4c90e6365e233cdcba3a5322697.tar.gz sonarqube-b4e4af137329f4c90e6365e233cdcba3a5322697.zip |
SONAR-6479 WS permissions/users search users with a specific permission
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java index fa78cd4edfa..e6b049ed4fe 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java @@ -21,12 +21,10 @@ package org.sonar.api.server.ws; import com.google.common.base.Function; import com.google.common.base.Joiner; -import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Maps; import com.google.common.collect.Sets; - import java.io.IOException; import java.net.URL; import java.nio.charset.StandardCharsets; @@ -36,18 +34,18 @@ import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; - import javax.annotation.CheckForNull; import javax.annotation.Nonnull; import javax.annotation.Nullable; import javax.annotation.concurrent.Immutable; - import org.apache.commons.io.FilenameUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; import org.sonar.api.ExtensionPoint; import org.sonar.api.server.ServerSide; +import static com.google.common.base.Preconditions.checkArgument; + /** * Defines a web service. Note that contrary to the deprecated {@link org.sonar.api.web.Webservice} * the ws is fully implemented in Java and does not require any Ruby on Rails code. @@ -647,7 +645,7 @@ public interface WebService extends Definable<WebService.Context> { } public static SelectionMode fromParam(String paramValue) { - Preconditions.checkArgument(BY_VALUE.containsKey(paramValue)); + checkArgument(BY_VALUE.containsKey(paramValue)); return BY_VALUE.get(paramValue); } |