diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-29 20:37:02 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-29 20:37:02 +0000 |
commit | 8f8c46521687d52b6e7d6ffea513c7285c1b8523 (patch) | |
tree | cec5c3043feb43c5f921858747892800a2cbf16c /plugins/sonar-clover-plugin | |
parent | 9ec610ece2eb7ff440ee577b9347da7a5c5cb333 (diff) | |
download | sonarqube-8f8c46521687d52b6e7d6ffea513c7285c1b8523.tar.gz sonarqube-8f8c46521687d52b6e7d6ffea513c7285c1b8523.zip |
remove use of deprecated constructors in CoberturaSensor and CloverSensor
Diffstat (limited to 'plugins/sonar-clover-plugin')
-rw-r--r-- | plugins/sonar-clover-plugin/src/main/java/org/sonar/plugins/clover/CloverSensor.java | 4 | ||||
-rw-r--r-- | plugins/sonar-clover-plugin/src/test/java/org/sonar/plugins/clover/CloverSensorTest.java | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/plugins/sonar-clover-plugin/src/main/java/org/sonar/plugins/clover/CloverSensor.java b/plugins/sonar-clover-plugin/src/main/java/org/sonar/plugins/clover/CloverSensor.java index da6ca3930ae..0fdc76999bd 100644 --- a/plugins/sonar-clover-plugin/src/main/java/org/sonar/plugins/clover/CloverSensor.java +++ b/plugins/sonar-clover-plugin/src/main/java/org/sonar/plugins/clover/CloverSensor.java @@ -20,7 +20,6 @@ package org.sonar.plugins.clover; import org.slf4j.LoggerFactory; -import org.sonar.api.Plugins; import org.sonar.api.batch.AbstractCoverageExtension; import org.sonar.api.batch.Sensor; import org.sonar.api.batch.SensorContext; @@ -35,8 +34,7 @@ public class CloverSensor extends AbstractCoverageExtension implements Sensor, D private CloverMavenPluginHandler handler; - public CloverSensor(Plugins plugins, CloverMavenPluginHandler handler) { - super(plugins); + public CloverSensor(CloverMavenPluginHandler handler) { this.handler = handler; } diff --git a/plugins/sonar-clover-plugin/src/test/java/org/sonar/plugins/clover/CloverSensorTest.java b/plugins/sonar-clover-plugin/src/test/java/org/sonar/plugins/clover/CloverSensorTest.java index 917499f0b4d..6b9b2744be8 100644 --- a/plugins/sonar-clover-plugin/src/test/java/org/sonar/plugins/clover/CloverSensorTest.java +++ b/plugins/sonar-clover-plugin/src/test/java/org/sonar/plugins/clover/CloverSensorTest.java @@ -35,20 +35,20 @@ public class CloverSensorTest { public void doNotExecuteMavenPluginIfReuseReports() { Project project = mock(Project.class); when(project.getAnalysisType()).thenReturn(Project.AnalysisType.REUSE_REPORTS); - assertThat(new CloverSensor(null, new CloverMavenPluginHandler(new PropertiesConfiguration())).getMavenPluginHandler(project), nullValue()); + assertThat(new CloverSensor(new CloverMavenPluginHandler(new PropertiesConfiguration())).getMavenPluginHandler(project), nullValue()); } @Test public void doNotExecuteMavenPluginIfStaticAnalysis() { Project project = mock(Project.class); when(project.getAnalysisType()).thenReturn(Project.AnalysisType.STATIC); - assertThat(new CloverSensor(null, new CloverMavenPluginHandler(new PropertiesConfiguration())).getMavenPluginHandler(project), nullValue()); + assertThat(new CloverSensor(new CloverMavenPluginHandler(new PropertiesConfiguration())).getMavenPluginHandler(project), nullValue()); } @Test public void executeMavenPluginIfDynamicAnalysis() { Project project = mock(Project.class); when(project.getAnalysisType()).thenReturn(Project.AnalysisType.DYNAMIC); - assertThat(new CloverSensor(null, new CloverMavenPluginHandler(new PropertiesConfiguration())).getMavenPluginHandler(project), not(nullValue())); + assertThat(new CloverSensor(new CloverMavenPluginHandler(new PropertiesConfiguration())).getMavenPluginHandler(project), not(nullValue())); } } |