aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-03-28 16:26:19 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-03-28 16:29:26 +0200
commit965e41166c68a64f1184cc64bd209ec2d0b0778d (patch)
tree65c31abb07af5eaa80e960a98a7a2fbd78eecbe2 /sonar-plugin-api
parent786c77697bcec0ae97d716c7bf4b8f4999cd935f (diff)
downloadsonarqube-965e41166c68a64f1184cc64bd209ec2d0b0778d.tar.gz
sonarqube-965e41166c68a64f1184cc64bd209ec2d0b0778d.zip
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/server/ws/internal/SimpleGetRequest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/internal/SimpleGetRequest.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/internal/SimpleGetRequest.java
index f38adc5591d..f35960dd1a2 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/internal/SimpleGetRequest.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/internal/SimpleGetRequest.java
@@ -29,6 +29,7 @@ import org.sonar.api.server.ws.LocalConnector;
import org.sonar.api.server.ws.Request;
import static com.google.common.base.Preconditions.checkNotNull;
+import static java.nio.charset.StandardCharsets.UTF_8;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
@@ -78,7 +79,7 @@ public class SimpleGetRequest extends Request {
@Override
public InputStream paramAsInputStream(String key) {
- return IOUtils.toInputStream(param(key));
+ return IOUtils.toInputStream(param(key), UTF_8);
}
public SimpleGetRequest setParam(String key, @Nullable String value) {