From: Duarte Meneses Date: Wed, 30 Sep 2015 13:35:00 +0000 (+0200) Subject: Remove unused objects X-Git-Tag: 5.2-RC1~134 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F552%2Fhead;p=sonarqube.git Remove unused objects --- diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/MutableProjectReactorProvider.java b/sonar-batch/src/main/java/org/sonar/batch/scan/MutableProjectReactorProvider.java index 3cd6d8ff142..38452122281 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/scan/MutableProjectReactorProvider.java +++ b/sonar-batch/src/main/java/org/sonar/batch/scan/MutableProjectReactorProvider.java @@ -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()); diff --git a/sonar-batch/src/test/java/org/sonar/batch/cache/ProjectCacheSynchronizerTest.java b/sonar-batch/src/test/java/org/sonar/batch/cache/ProjectCacheSynchronizerTest.java index ebaa797cc43..3d2e5510deb 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/cache/ProjectCacheSynchronizerTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/cache/ProjectCacheSynchronizerTest.java @@ -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;