aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-pmd-plugin/src
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-12-03 13:14:37 +0000
committerGodin <mandrikov@gmail.com>2010-12-03 13:14:37 +0000
commitb24e8d9e7faed6b0cad3e43fa064820b578adae0 (patch)
treef078f5be66c644c62bcaf34ce78179b4cdcec2c9 /plugins/sonar-pmd-plugin/src
parent4797af9603b3866df947f5c503e23a9e8115aa63 (diff)
downloadsonarqube-b24e8d9e7faed6b0cad3e43fa064820b578adae0.tar.gz
sonarqube-b24e8d9e7faed6b0cad3e43fa064820b578adae0.zip
Core Plugins: don't use deprecated methods, add missing license header
Diffstat (limited to 'plugins/sonar-pmd-plugin/src')
-rw-r--r--plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java b/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java
index a637d82f8fa..b6b99babeb6 100644
--- a/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java
+++ b/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java
@@ -19,7 +19,6 @@
*/
package org.sonar.plugins.pmd;
-import org.sonar.api.CoreProperties;
import org.sonar.api.batch.AbstractViolationsStaxParser;
import org.sonar.api.batch.Sensor;
import org.sonar.api.batch.SensorContext;
@@ -35,7 +34,7 @@ public class PmdSensor implements Sensor {
private RulesProfile profile;
private RulesManager rulesManager;
private PmdExecutor executor;
-
+
public PmdSensor(RulesProfile profile, RulesManager rulesManager, PmdExecutor executor) {
this.profile = profile;
this.rulesManager = rulesManager;
@@ -56,7 +55,7 @@ public class PmdSensor implements Sensor {
public boolean shouldExecuteOnProject(Project project) {
return project.getFileSystem().hasJavaSourceFiles() &&
- (!profile.getActiveRulesByPlugin(CoreProperties.PMD_PLUGIN).isEmpty() || project.getReuseExistingRulesConfig());
+ (!profile.getActiveRulesByRepository(PmdConstants.REPOSITORY_KEY).isEmpty() || project.getReuseExistingRulesConfig());
}
private AbstractViolationsStaxParser getStaxParser(Project project, SensorContext context) {