]> source.dussan.org Git - sonarqube.git/commitdiff
Add default measure duplications to container
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Thu, 27 Jul 2017 12:02:59 +0000 (14:02 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Mon, 7 Aug 2017 09:44:06 +0000 (11:44 +0200)
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/container/ProjectAnalysisTaskContainerPopulator.java
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/DuplicationMeasuresStep.java

index c6fcc5d22d9c06651e72abf10261d271ed8cde41..d9bf5132eccd698ca4dca6099479816d13343127 100644 (file)
@@ -38,6 +38,7 @@ import org.sonar.server.computation.task.projectanalysis.component.DisabledCompo
 import org.sonar.server.computation.task.projectanalysis.component.ConfigurationRepositoryImpl;
 import org.sonar.server.computation.task.projectanalysis.component.TreeRootHolderImpl;
 import org.sonar.server.computation.task.projectanalysis.duplication.CrossProjectDuplicationStatusHolderImpl;
+import org.sonar.server.computation.task.projectanalysis.duplication.DuplicationMeasures;
 import org.sonar.server.computation.task.projectanalysis.duplication.DuplicationRepositoryImpl;
 import org.sonar.server.computation.task.projectanalysis.duplication.IntegrateCrossProjectDuplications;
 import org.sonar.server.computation.task.projectanalysis.event.EventRepositoryImpl;
@@ -235,6 +236,7 @@ public final class ProjectAnalysisTaskContainerPopulator implements ContainerPop
 
       // duplication
       IntegrateCrossProjectDuplications.class,
+      DuplicationMeasures.class,
 
       // views
       ViewIndex.class,
index 4f317f007eeb706a57cfc75c18278bad8cc36793..5a66cd4a66a25ae604e1a5391d116e256e3e6af9 100644 (file)
@@ -19,6 +19,8 @@
  */
 package org.sonar.server.computation.task.projectanalysis.step;
 
+import javax.annotation.Nullable;
+
 import org.sonar.api.measures.CoreMetrics;
 import org.sonar.server.computation.task.projectanalysis.analysis.AnalysisMetadataHolder;
 import org.sonar.server.computation.task.projectanalysis.duplication.DuplicationMeasures;
@@ -36,7 +38,7 @@ public class DuplicationMeasuresStep implements ComputationStep {
   private final IncrementalDuplicationMeasures incrementalDuplicationsMeasures;
 
   public DuplicationMeasuresStep(AnalysisMetadataHolder analysisMetadataHolder, DuplicationMeasures defaultDuplicationMeasures,
-    IncrementalDuplicationMeasures incrementalDuplicationMeasures) {
+    @Nullable IncrementalDuplicationMeasures incrementalDuplicationMeasures) {
     this.analysisMetadataHolder = analysisMetadataHolder;
     this.defaultDuplicationMeasures = defaultDuplicationMeasures;
     this.incrementalDuplicationsMeasures = incrementalDuplicationMeasures;