]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Quality flaws
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 12 May 2017 14:03:49 +0000 (16:03 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 12 May 2017 14:04:12 +0000 (16:04 +0200)
sonar-core/src/main/java/org/sonar/core/i18n/DefaultI18n.java
sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/TestInputFileBuilder.java

index 75e135919ee930a34b7b4d347575435f17359ea5..116d2c1c2a4c11ab00f3877422650da5d1a3cc74 100644 (file)
@@ -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");
index e1ec36d37b77087abb8b209b7a61c65695167d38..6fc584fdfbc94c595de717b32819f88b46d2a70b 100644 (file)
@@ -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();
     }