aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-05-09 22:54:55 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-05-12 14:11:20 +0200
commit1d3767c84d330c2f529c05f1e0df1e035a153a5b (patch)
tree4abeb9c0193ddd8189d527e97dd2be72b25431a2 /sonar-core
parent0411a04805221c350bc9507757d3d9b2cdacd408 (diff)
downloadsonarqube-1d3767c84d330c2f529c05f1e0df1e035a153a5b.tar.gz
sonarqube-1d3767c84d330c2f529c05f1e0df1e035a153a5b.zip
Fix Quality flaws
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java b/sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java
index ae746c6580b..75e135919ee 100644
--- a/sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java
+++ b/sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java
@@ -210,8 +210,8 @@ public class DefaultI18n implements I18n, Startable {
return result;
}
- String readInputStream(String filePath, InputStream input) {
- String result = null;
+ private String readInputStream(String filePath, InputStream input) {
+ String result;
try {
result = IOUtils.toString(input, "UTF-8");
} catch (IOException e) {