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 /sonar-colorizer | |
parent | 6a19a67a23a39848c28ae3cf2d189bf926fadf9b (diff) | |
download | sonarqube-b1e62699ff74c09b2cf7313ef8a33d5ea7b0ae5f.tar.gz sonarqube-b1e62699ff74c09b2cf7313ef8a33d5ea7b0ae5f.zip |
Use StandardCharsets instead of Guava and commons-io
Diffstat (limited to 'sonar-colorizer')
-rw-r--r-- | sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java index 35f1d896d34..48b65acaaf9 100644 --- a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java +++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java @@ -21,11 +21,11 @@ package org.sonar.colorizer; import com.google.common.io.ByteStreams; import com.google.common.io.Closeables; -import org.apache.commons.io.Charsets; import org.sonar.channel.CodeReader; import java.io.IOException; import java.io.InputStream; +import java.nio.charset.StandardCharsets; /** * @deprecated since 4.5.2 replace by highlighting mechanism @@ -99,7 +99,7 @@ public class HtmlDecorator extends Tokenizer { InputStream input = null; try { input = HtmlRenderer.class.getResourceAsStream(CSS_PATH); - return new String(ByteStreams.toByteArray(input), Charsets.UTF_8); + return new String(ByteStreams.toByteArray(input), StandardCharsets.UTF_8); } catch (IOException e) { throw new SynhtaxHighlightingException("SonarQube Colorizer CSS file not found: " + CSS_PATH, e); |