aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-xoo-plugin
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2018-12-05 10:23:09 +0100
committersonartech <sonartech@sonarsource.com>2019-01-16 09:43:06 +0100
commit532850a387e483592e6f2f80a5e833bcf218a58f (patch)
treebb504874ef6a1f36059113c962132e27660cb33f /plugins/sonar-xoo-plugin
parent55579a4572f8233957275c896139cb1dfedd2622 (diff)
downloadsonarqube-532850a387e483592e6f2f80a5e833bcf218a58f.tar.gz
sonarqube-532850a387e483592e6f2f80a5e833bcf218a58f.zip
Fix quality flaws
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r--plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java4
-rw-r--r--plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/global/GlobalProjectSensor.java (renamed from plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/global/GlobalSensor.java)6
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java
index 73efd1d2580..8817e5575ec 100644
--- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java
+++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java
@@ -32,7 +32,7 @@ import org.sonar.xoo.extensions.XooIssueFilter;
import org.sonar.xoo.extensions.XooPostJob;
import org.sonar.xoo.extensions.XooProjectBuilder;
import org.sonar.xoo.global.DeprecatedGlobalSensor;
-import org.sonar.xoo.global.GlobalSensor;
+import org.sonar.xoo.global.GlobalProjectSensor;
import org.sonar.xoo.lang.CpdTokenizerSensor;
import org.sonar.xoo.lang.LineMeasureSensor;
import org.sonar.xoo.lang.MeasureSensor;
@@ -174,7 +174,7 @@ public class XooPlugin implements Plugin {
context.addExtension(DeprecatedGlobalSensor.class);
}
if (context.getSonarQubeVersion().isGreaterThanOrEqual(Version.create(7, 6))) {
- context.addExtension(GlobalSensor.class);
+ context.addExtension(GlobalProjectSensor.class);
}
if (context.getSonarQubeVersion().isGreaterThanOrEqual(Version.create(7, 2))) {
context.addExtensions(
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/global/GlobalSensor.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/global/GlobalProjectSensor.java
index e4aef94c692..67d214011f5 100644
--- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/global/GlobalSensor.java
+++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/global/GlobalProjectSensor.java
@@ -19,15 +19,15 @@
*/
package org.sonar.xoo.global;
-import org.sonar.api.scanner.sensor.Sensor;
+import org.sonar.api.scanner.sensor.ProjectSensor;
import org.sonar.api.batch.sensor.SensorContext;
import org.sonar.api.batch.sensor.SensorDescriptor;
import org.sonar.api.utils.log.Logger;
import org.sonar.api.utils.log.Loggers;
-public class GlobalSensor implements Sensor {
+public class GlobalProjectSensor implements ProjectSensor {
- private static final Logger LOG = Loggers.get(GlobalSensor.class);
+ private static final Logger LOG = Loggers.get(GlobalProjectSensor.class);
public static final String ENABLE_PROP = "sonar.scanner.mediumtest.globalSensor";
@Override