diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-05-15 13:54:44 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-05-15 13:54:54 +0200 |
commit | b1e62699ff74c09b2cf7313ef8a33d5ea7b0ae5f (patch) | |
tree | 21efd2dbbd3492a6f518fcd57de4888e1bfb4c3b /server/sonar-process-monitor/src | |
parent | 6a19a67a23a39848c28ae3cf2d189bf926fadf9b (diff) | |
download | sonarqube-b1e62699ff74c09b2cf7313ef8a33d5ea7b0ae5f.tar.gz sonarqube-b1e62699ff74c09b2cf7313ef8a33d5ea7b0ae5f.zip |
Use StandardCharsets instead of Guava and commons-io
Diffstat (limited to 'server/sonar-process-monitor/src')
-rw-r--r-- | server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/StreamGobbler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/StreamGobbler.java b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/StreamGobbler.java index 35c03564abf..73181e148a3 100644 --- a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/StreamGobbler.java +++ b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/StreamGobbler.java @@ -19,7 +19,6 @@ */ package org.sonar.process.monitor; -import org.apache.commons.io.Charsets; import org.apache.commons.io.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -29,6 +28,7 @@ import javax.annotation.Nullable; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; /** * Reads process output and writes to logs @@ -50,7 +50,7 @@ class StreamGobbler extends Thread { @Override public void run() { - BufferedReader br = new BufferedReader(new InputStreamReader(is, Charsets.UTF_8)); + BufferedReader br = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8)); try { String line; while ((line = br.readLine()) != null) { |