aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-07-22 09:05:04 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-07-22 09:06:29 +0200
commit830070e4f0514ab67d408755090890f382cd368f (patch)
treee7d01ab2aa0767ffbeccf5ec967cae0d326eb2fa /sonar-batch/src
parentfc5b404417d02bb245ae575092af71cc85eabee1 (diff)
downloadsonarqube-830070e4f0514ab67d408755090890f382cd368f.tar.gz
sonarqube-830070e4f0514ab67d408755090890f382cd368f.zip
SONAR-5389 Fix issue after renaming of Analyzer -> Sensor
Diffstat (limited to 'sonar-batch/src')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchExtensionDictionnary.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchExtensionDictionnary.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchExtensionDictionnary.java
index fdbdc536eaf..7317c9afd08 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchExtensionDictionnary.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchExtensionDictionnary.java
@@ -67,7 +67,7 @@ public class BatchExtensionDictionnary extends org.sonar.api.batch.BatchExtensio
}
}
if (org.sonar.api.batch.Sensor.class.equals(type)) {
- // Retrieve Analyzer and wrap then in SensorWrapper
+ // Retrieve new Sensors and wrap then in SensorWrapper
for (Object extension : getExtensions(Sensor.class)) {
extension = new SensorWrapper((Sensor) extension, context, analyzerOptimizer);
if (shouldKeep(type, extension, project, matcher)) {
@@ -80,7 +80,7 @@ public class BatchExtensionDictionnary extends org.sonar.api.batch.BatchExtensio
private boolean shouldKeep(Class type, Object extension, @Nullable Project project, @Nullable ExtensionMatcher matcher) {
boolean keep = (ClassUtils.isAssignable(extension.getClass(), type)
- || (Sensor.class.equals(type) && ClassUtils.isAssignable(extension.getClass(), Sensor.class)))
+ || (org.sonar.api.batch.Sensor.class.equals(type) && ClassUtils.isAssignable(extension.getClass(), Sensor.class)))
&& (matcher == null || matcher.accept(extension));
if (keep && project != null && ClassUtils.isAssignable(extension.getClass(), CheckProject.class)) {
keep = ((CheckProject) extension).shouldExecuteOnProject(project);