From 0a67df44a1f04ffd6a4d7d2845b6a1e136519f04 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 21 Oct 2013 17:07:40 +0200 Subject: Fix some quality flaws --- .../main/java/org/sonar/batch/scan/filesystem/FileIndex.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sonar-batch') 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; } -- cgit v1.2.3