diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-10-24 11:16:42 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-10-24 11:16:42 +0200 |
commit | a0cfbf2ec2c6d6313b532df054dad8feaad3442f (patch) | |
tree | c4dbf1f519eff73d1714412cbfa9fecd515cd4c5 /sonar-scanner-engine/src/main/java/org/sonar/scanner | |
parent | 13e4562536570e5f0b2691c8aa09ae14ed4a3f0a (diff) | |
download | sonarqube-a0cfbf2ec2c6d6313b532df054dad8feaad3442f.tar.gz sonarqube-a0cfbf2ec2c6d6313b532df054dad8feaad3442f.zip |
Fix minor Quality flaws
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/filesystem/InputFileBuilder.java | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/filesystem/InputFileBuilder.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/filesystem/InputFileBuilder.java index 511a01ed644..31fff15071b 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/filesystem/InputFileBuilder.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/filesystem/InputFileBuilder.java @@ -20,6 +20,12 @@ package org.sonar.scanner.scan.filesystem; import com.google.common.annotations.VisibleForTesting; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import javax.annotation.CheckForNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.api.CoreProperties; @@ -30,18 +36,16 @@ import org.sonar.api.batch.fs.internal.FileMetadata; import org.sonar.api.config.Settings; import org.sonar.api.scan.filesystem.PathResolver; -import javax.annotation.CheckForNull; - -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.nio.charset.Charset; -import java.nio.charset.StandardCharsets; - class InputFileBuilder { private static final Logger LOG = LoggerFactory.getLogger(InputFileBuilder.class); + @VisibleForTesting + static final Charset UTF_32BE = Charset.forName("UTF-32BE"); + + @VisibleForTesting + static final Charset UTF_32LE = Charset.forName("UTF-32LE"); + private final String moduleKey; private final PathResolver pathResolver; private final LanguageDetection langDetection; @@ -140,11 +144,4 @@ class InputFileBuilder { throw new IllegalStateException("Unable to read file " + file.getAbsolutePath(), e); } } - - @VisibleForTesting - static final Charset UTF_32BE = Charset.forName("UTF-32BE"); - - @VisibleForTesting - static final Charset UTF_32LE = Charset.forName("UTF-32LE"); - } |