diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java | 8 |
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) { |