summaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-10-21 17:07:40 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-10-21 17:07:50 +0200
commit0a67df44a1f04ffd6a4d7d2845b6a1e136519f04 (patch)
tree6ae3d8f5dea847418cd0fb31c99e2cff5ae9b090 /sonar-batch
parentcda2773b5ec6b436c2b966ed04147b1dfeab2f67 (diff)
downloadsonarqube-0a67df44a1f04ffd6a4d7d2845b6a1e136519f04.tar.gz
sonarqube-0a67df44a1f04ffd6a4d7d2845b6a1e136519f04.zip
Fix some quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java
index ce70ee6d636..e58052abd99 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java
@@ -150,18 +150,18 @@ public class FileIndex implements BatchComponent {
if (path == null) {
LoggerFactory.getLogger(getClass()).warn(String.format("File '%s' is not in basedir '%s'", file.getAbsolutePath(), fileSystem.baseDir()));
} else {
- InputFile input = newInputFile(fileSystem, sourceDir, type, file, path);
- if (input != null && accept(input)) {
- cache.put(fileSystem.moduleKey(), input);
- status.markAsIndexed(path);
- }
+ InputFile input = newInputFile(fileSystem, sourceDir, type, file, path);
+ if (input != null && accept(input)) {
+ cache.put(fileSystem.moduleKey(), input);
+ status.markAsIndexed(path);
}
+ }
}
@CheckForNull
private InputFile newInputFile(ModuleFileSystem fileSystem, File sourceDir, String type, File file, String path) {
String lang = languageRecognizer.of(file);
- if (lang==null) {
+ if (lang == null) {
return null;
}