aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-05-15 13:54:44 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-05-15 13:54:54 +0200
commitb1e62699ff74c09b2cf7313ef8a33d5ea7b0ae5f (patch)
tree21efd2dbbd3492a6f518fcd57de4888e1bfb4c3b /plugins
parent6a19a67a23a39848c28ae3cf2d189bf926fadf9b (diff)
downloadsonarqube-b1e62699ff74c09b2cf7313ef8a33d5ea7b0ae5f.tar.gz
sonarqube-b1e62699ff74c09b2cf7313ef8a33d5ea7b0ae5f.zip
Use StandardCharsets instead of Guava and commons-io
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooBlameCommand.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooBlameCommand.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooBlameCommand.java
index 0d1c978e0de..dcf5258413b 100644
--- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooBlameCommand.java
+++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooBlameCommand.java
@@ -20,7 +20,6 @@
package org.sonar.xoo.scm;
import com.google.common.annotations.VisibleForTesting;
-import com.google.common.base.Charsets;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.sonar.api.batch.fs.InputFile;
@@ -30,6 +29,7 @@ import org.sonar.api.utils.DateUtils;
import java.io.File;
import java.io.IOException;
+import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
@@ -53,7 +53,7 @@ public class XooBlameCommand extends BlameCommand {
}
try {
- List<String> lines = FileUtils.readLines(scmDataFile, Charsets.UTF_8.name());
+ List<String> lines = FileUtils.readLines(scmDataFile, StandardCharsets.UTF_8);
List<BlameLine> blame = new ArrayList<>(lines.size());
int lineNumber = 0;
for (String line : lines) {