diff options
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); } |