aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar/scanner
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-24 11:16:42 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-24 11:16:42 +0200
commita0cfbf2ec2c6d6313b532df054dad8feaad3442f (patch)
treec4dbf1f519eff73d1714412cbfa9fecd515cd4c5 /sonar-scanner-engine/src/main/java/org/sonar/scanner
parent13e4562536570e5f0b2691c8aa09ae14ed4a3f0a (diff)
downloadsonarqube-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.java27
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");
-
}