From 5b6f2f65d83051bc37954818927e80414c7e6db9 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Wed, 30 Sep 2015 15:35:00 +0200 Subject: [PATCH] Remove unused objects --- .../org/sonar/batch/scan/MutableProjectReactorProvider.java | 3 +-- .../org/sonar/batch/cache/ProjectCacheSynchronizerTest.java | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) 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; -- 2.39.5