diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-09-30 15:35:00 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-10-01 14:34:34 +0200 |
commit | 5b6f2f65d83051bc37954818927e80414c7e6db9 (patch) | |
tree | 5a2dac0cbf7ca90dc8906dc5759adf8855c15e2d | |
parent | 40b5a0937811d860b97bbc57284a050c4b259b81 (diff) | |
download | sonarqube-5b6f2f65d83051bc37954818927e80414c7e6db9.tar.gz sonarqube-5b6f2f65d83051bc37954818927e80414c7e6db9.zip |
Remove unused objects
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/scan/MutableProjectReactorProvider.java | 3 | ||||
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/cache/ProjectCacheSynchronizerTest.java | 3 |
2 files changed, 1 insertions, 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; |