aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-05-12 16:03:49 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-05-12 16:04:12 +0200
commitfff73903632519aa70356279a77e8cae2e50db05 (patch)
treee8f776648dbab2c19aff55a851493bb4a3f4589f
parent474a8d844d38d7fa47beadea7acf62f35f698d92 (diff)
downloadsonarqube-fff73903632519aa70356279a77e8cae2e50db05.tar.gz
sonarqube-fff73903632519aa70356279a77e8cae2e50db05.zip
Fix Quality flaws
-rw-r--r--sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/TestInputFileBuilder.java2
2 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 75e135919ee..116d2c1c2a4 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,7 +210,7 @@ public class DefaultI18n implements I18n, Startable {
return result;
}
- private String readInputStream(String filePath, InputStream input) {
+ private static String readInputStream(String filePath, InputStream input) {
String result;
try {
result = IOUtils.toString(input, "UTF-8");
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/TestInputFileBuilder.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/TestInputFileBuilder.java
index e1ec36d37b7..6fc584fdfbc 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/TestInputFileBuilder.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/TestInputFileBuilder.java
@@ -112,7 +112,7 @@ public class TestInputFileBuilder {
public TestInputFileBuilder setModuleBaseDir(Path moduleBaseDir) {
try {
- this.moduleBaseDir = moduleBaseDir.normalize().toRealPath(new LinkOption[] {LinkOption.NOFOLLOW_LINKS});
+ this.moduleBaseDir = moduleBaseDir.normalize().toRealPath(LinkOption.NOFOLLOW_LINKS);
} catch (IOException e) {
this.moduleBaseDir = moduleBaseDir.normalize();
}