diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-01-14 16:07:49 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-01-15 09:08:58 +0100 |
commit | 1e6facc12390d970ad259af550ea3dba8426a79f (patch) | |
tree | c2a0560b38d0e1540876fa30f679a8a2301ee007 /sonar-deprecated | |
parent | 0faa4541176ca28229345d47fa1745b31b597e86 (diff) | |
download | sonarqube-1e6facc12390d970ad259af550ea3dba8426a79f.tar.gz sonarqube-1e6facc12390d970ad259af550ea3dba8426a79f.zip |
SONAR-5931 Publish new sensor API
Diffstat (limited to 'sonar-deprecated')
-rw-r--r-- | sonar-deprecated/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java | 12 |
1 files changed, 0 insertions, 12 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 34c5d6bbdbd..e81f3509a55 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 @@ -26,8 +26,6 @@ import org.apache.commons.lang.ClassUtils; import org.sonar.api.BatchExtension; import org.sonar.api.batch.maven.DependsUponMavenPlugin; import org.sonar.api.batch.maven.MavenPluginHandler; -import org.sonar.api.batch.sensor.Sensor; -import org.sonar.api.batch.sensor.internal.DefaultSensorDescriptor; import org.sonar.api.platform.ComponentContainer; import org.sonar.api.resources.Project; import org.sonar.api.utils.AnnotationUtils; @@ -148,11 +146,6 @@ 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(), Sensor.class)) { - DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); - ((Sensor) extension).describe(descriptor); - result.addAll(Arrays.asList(descriptor.dependsOn())); - } return result; } @@ -162,11 +155,6 @@ 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(), Sensor.class)) { - DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); - ((Sensor) extension).describe(descriptor); - result.addAll(Arrays.asList(descriptor.provides())); - } return result; } |