diff --git a/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/cmd/PMDEngine.java b/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/cmd/PMDEngine.java index 1069f8a284..8af8492e65 100644 --- a/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/cmd/PMDEngine.java +++ b/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/runtime/cmd/PMDEngine.java @@ -21,11 +21,8 @@ public class PMDEngine { private Configuration configuration = new Configuration(); - // FIXME: PMD 5.0 - private LanguageVersion languageVersion; - public void setLanguageVersion(LanguageVersion languageVersion) { - this.languageVersion = languageVersion; + configuration.setDefaultLanguageVersion(languageVersion); } public void setClassLoader(ClassLoader classLoader) { @@ -40,8 +37,7 @@ public class PMDEngine { RuleSets set = new RuleSets(); set.addRuleSet(ruleSet); - PMD pmd = new PMD(); - pmd.setConfiguration(configuration); + PMD pmd = new PMD(configuration); pmd.processFile(input, set, context); }