diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-04-15 14:19:03 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-04-24 10:20:15 +0200 |
commit | 092b18233548f6b71e02341a895146f6f0fc685c (patch) | |
tree | b2ff3b3a8732b3c96952d3e6973668bfd6b1481c | |
parent | 55cb3d641b2390c035539a9d33f91b4ab5b53c0a (diff) | |
download | sonarqube-092b18233548f6b71e02341a895146f6f0fc685c.tar.gz sonarqube-092b18233548f6b71e02341a895146f6f0fc685c.zip |
Fix some quality flaws
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/ComponentIndexer.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/ComponentIndexer.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/ComponentIndexer.java index e398cd6b98b..bb82329185d 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/ComponentIndexer.java +++ b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/ComponentIndexer.java @@ -78,10 +78,8 @@ public class ComponentIndexer implements BatchComponent { } else { sonarFile.setDeprecatedKey(pathFromSourceDir); } - if (sonarFile != null) { - sonarIndex.index(sonarFile); - importSources(fs, shouldImportSource, inputFile, sonarFile); - } + sonarIndex.index(sonarFile); + importSources(fs, shouldImportSource, inputFile, sonarFile); } } |