update PMD 5.0 snapshot to build 6645

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6647 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2008-10-20 16:23:59 +00:00
parent 38e1e54085
commit bf1113eb8f

View File

@ -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);
}