From b1e62699ff74c09b2cf7313ef8a33d5ea7b0ae5f Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 15 May 2015 13:54:44 +0200 Subject: Use StandardCharsets instead of Guava and commons-io --- sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sonar-colorizer/src') 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); -- cgit v1.2.3