aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleIndexer.java
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2018-11-16 15:19:14 +0100
committersonartech <sonartech@sonarsource.com>2019-01-16 09:43:02 +0100
commitb6f878d8d48c55c03bcbf2ba8010526f1fa12f49 (patch)
tree01f2d3038a65ea2d7f79978d17a77f4d33f69522 /sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleIndexer.java
parent6a598e7d7973171e04d78483085ede97a4e21dcb (diff)
downloadsonarqube-b6f878d8d48c55c03bcbf2ba8010526f1fa12f49.tar.gz
sonarqube-b6f878d8d48c55c03bcbf2ba8010526f1fa12f49.zip
SONAR-11459 Stop publishing modules and folders in the scanner report
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleIndexer.java')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleIndexer.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleIndexer.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleIndexer.java
index 60baccdfa5a..4b85e732f66 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleIndexer.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleIndexer.java
@@ -30,12 +30,10 @@ import org.sonar.scanner.scan.filesystem.InputComponentStore;
* project definitions provided by the {@link ImmutableProjectReactor}.
*/
public class ModuleIndexer implements Startable {
- private final DefaultComponentTree componentTree;
private final InputModuleHierarchy moduleHierarchy;
private final InputComponentStore componentStore;
- public ModuleIndexer(DefaultComponentTree componentTree, InputComponentStore componentStore, InputModuleHierarchy moduleHierarchy) {
- this.componentTree = componentTree;
+ public ModuleIndexer(InputComponentStore componentStore, InputModuleHierarchy moduleHierarchy) {
this.componentStore = componentStore;
this.moduleHierarchy = moduleHierarchy;
}
@@ -49,7 +47,6 @@ public class ModuleIndexer implements Startable {
private void indexChildren(DefaultInputModule parent) {
for (DefaultInputModule module : moduleHierarchy.children(parent)) {
- componentTree.index(module, parent);
componentStore.put(module);
indexChildren(module);
}