aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-07-21 15:52:34 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-07-21 15:53:14 +0200
commit1b642da7883702abcc6f93b590cfe4cd3c271d4d (patch)
treeceb30d9cc8bf4c43bfd88fc4eb3d5571fd818050 /sonar-deprecated
parentc170323815e752c67977d68fb99cb27a95c61482 (diff)
downloadsonarqube-1b642da7883702abcc6f93b590cfe4cd3c271d4d.tar.gz
sonarqube-1b642da7883702abcc6f93b590cfe4cd3c271d4d.zip
SONAR-5389 Rename Analyzer -> Sensor
Diffstat (limited to 'sonar-deprecated')
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java b/sonar-deprecated/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java
index 556ea373b9c..ffd90b34de2 100644
--- a/sonar-deprecated/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java
+++ b/sonar-deprecated/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java
@@ -19,13 +19,14 @@
*/
package org.sonar.api.batch;
+import org.sonar.api.batch.sensor.Sensor;
+import org.sonar.api.batch.sensor.internal.DefaultSensorDescriptor;
+
import com.google.common.base.Predicates;
import com.google.common.collect.Collections2;
import com.google.common.collect.Lists;
import org.apache.commons.lang.ClassUtils;
import org.sonar.api.BatchExtension;
-import org.sonar.api.batch.analyzer.Analyzer;
-import org.sonar.api.batch.analyzer.internal.DefaultAnalyzerDescriptor;
import org.sonar.api.batch.maven.DependsUponMavenPlugin;
import org.sonar.api.batch.maven.MavenPluginHandler;
import org.sonar.api.platform.ComponentContainer;
@@ -148,9 +149,9 @@ public class BatchExtensionDictionnary {
private <T> List<Object> getDependencies(T extension) {
List<Object> result = new ArrayList<Object>();
result.addAll(evaluateAnnotatedClasses(extension, DependsUpon.class));
- if (ClassUtils.isAssignable(extension.getClass(), Analyzer.class)) {
- DefaultAnalyzerDescriptor descriptor = new DefaultAnalyzerDescriptor();
- ((Analyzer) extension).describe(descriptor);
+ if (ClassUtils.isAssignable(extension.getClass(), Sensor.class)) {
+ DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor();
+ ((Sensor) extension).describe(descriptor);
result.addAll(Arrays.asList(descriptor.dependsOn()));
}
return result;
@@ -162,9 +163,9 @@ public class BatchExtensionDictionnary {
public <T> List<Object> getDependents(T extension) {
List<Object> result = new ArrayList<Object>();
result.addAll(evaluateAnnotatedClasses(extension, DependedUpon.class));
- if (ClassUtils.isAssignable(extension.getClass(), Analyzer.class)) {
- DefaultAnalyzerDescriptor descriptor = new DefaultAnalyzerDescriptor();
- ((Analyzer) extension).describe(descriptor);
+ if (ClassUtils.isAssignable(extension.getClass(), Sensor.class)) {
+ DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor();
+ ((Sensor) extension).describe(descriptor);
result.addAll(Arrays.asList(descriptor.provides()));
}
return result;