]> source.dussan.org Git - sonarqube.git/commitdiff
Remove unused objects 552/head
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 30 Sep 2015 13:35:00 +0000 (15:35 +0200)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Thu, 1 Oct 2015 12:34:34 +0000 (14:34 +0200)
sonar-batch/src/main/java/org/sonar/batch/scan/MutableProjectReactorProvider.java
sonar-batch/src/test/java/org/sonar/batch/cache/ProjectCacheSynchronizerTest.java

index 3cd6d8ff142b467b7a0c7e8631b14cca4a72d21f..3845212228102a849239f7917b2197acd9fe5af8 100644 (file)
@@ -20,7 +20,6 @@
 package org.sonar.batch.scan;
 
 import org.apache.commons.io.FileUtils;
-import org.sonar.batch.analysis.AnalysisProperties;
 import org.picocontainer.injectors.ProviderAdapter;
 import org.sonar.api.batch.bootstrap.ProjectReactor;
 
@@ -31,7 +30,7 @@ import java.nio.file.Files;
 public class MutableProjectReactorProvider extends ProviderAdapter {
   private ProjectReactor reactor = null;
 
-  public ProjectReactor provide(ProjectReactorBuilder builder, AnalysisProperties settings) {
+  public ProjectReactor provide(ProjectReactorBuilder builder) {
     if (reactor == null) {
       reactor = builder.execute();
       cleanDirectory(reactor.getRoot().getWorkDir());
index ebaa797cc43427fdcd5b6d526f8d58fbe33b8add..3d2e5510debde75b29a8f5fa3c47497b3e7130ce 100644 (file)
@@ -31,7 +31,6 @@ import org.junit.rules.ExpectedException;
 import org.mockito.Mock;
 import org.mockito.MockitoAnnotations;
 import org.sonar.api.batch.bootstrap.ProjectDefinition;
-import org.sonar.api.batch.bootstrap.ProjectReactor;
 import org.sonar.batch.analysis.AnalysisProperties;
 import org.sonar.batch.analysis.DefaultAnalysisMode;
 import org.sonar.batch.repository.DefaultProjectRepositoriesLoader;
@@ -68,8 +67,6 @@ public class ProjectCacheSynchronizerTest {
   @Mock
   private ProjectDefinition project;
   @Mock
-  private ProjectReactor projectReactor;
-  @Mock
   private ProjectCacheStatus cacheStatus;
   @Mock
   private DefaultAnalysisMode analysisMode;