aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-cpd-plugin/src/main
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-01-20 16:46:47 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-01-20 19:10:12 +0400
commit2095f5221c41f4df2b3d19b1f880181a092ffc99 (patch)
tree5782a9f67d91a57d86dea229f45706b00a73b45b /plugins/sonar-cpd-plugin/src/main
parent2e7b62e02e70e9189aa87dc8fe56caa3896f3049 (diff)
downloadsonarqube-2095f5221c41f4df2b3d19b1f880181a092ffc99.tar.gz
sonarqube-2095f5221c41f4df2b3d19b1f880181a092ffc99.zip
SONAR-3139 Enable Sonar CPD by default
Diffstat (limited to 'plugins/sonar-cpd-plugin/src/main')
-rw-r--r--plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java
index fbb2be58662..b07ff10dbff 100644
--- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java
+++ b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java
@@ -64,11 +64,11 @@ public class CpdSensor implements Sensor {
if (sonarEngine.isLanguageSupported(project.getLanguage())) {
return sonarEngine;
}
- // falback to PMD
- } else if (isEngineEnabled(project, "bridge")) {
- return sonarBridgeEngine;
+ // falback to bridge
+ } else if (isEngineEnabled(project, "pmd")) {
+ return pmdEngine;
}
- return pmdEngine;
+ return sonarBridgeEngine;
}
boolean isEngineEnabled(Project project, String engineName) {