From a2d709b6669d3bdeff47e84df2560eee2295a92d Mon Sep 17 00:00:00 2001 From: Philippe Herlin Date: Thu, 27 Apr 2006 20:06:32 +0000 Subject: [PATCH] Fix the usage of PMD deprecated createRuleSet() method git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4367 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd-eclipse-test-fragment/src/test/RuleSetsExtension.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pmd-eclipse-test-fragment/src/test/RuleSetsExtension.java b/pmd-eclipse-test-fragment/src/test/RuleSetsExtension.java index 10526cbf0b..b295580d1a 100644 --- a/pmd-eclipse-test-fragment/src/test/RuleSetsExtension.java +++ b/pmd-eclipse-test-fragment/src/test/RuleSetsExtension.java @@ -54,6 +54,9 @@ import net.sourceforge.pmd.core.PMDCorePlugin; * @version $Revision$ * * $Log$ + * Revision 1.2 2006/04/27 20:06:32 phherlin + * Fix the usage of PMD deprecated createRuleSet() method + * * Revision 1.1 2005/07/02 14:32:25 phherlin * Implement the RuleSets extension points new tests * @@ -107,7 +110,7 @@ public class RuleSetsExtension implements IRuleSetsExtension { private RuleSet getRuleSet1() throws RuleSetNotFoundException { if (this.ruleSet1 == null) { RuleSetFactory factory = new RuleSetFactory(); - this.ruleSet1 = factory.createRuleSet("rulesets/extra1.xml"); + this.ruleSet1 = factory.createRuleSets("rulesets/extra1.xml").getAllRuleSets()[0]; } return this.ruleSet1; @@ -121,7 +124,7 @@ public class RuleSetsExtension implements IRuleSetsExtension { private RuleSet getRuleSet2() throws RuleSetNotFoundException { if (this.ruleSet2 == null) { RuleSetFactory factory = new RuleSetFactory(); - this.ruleSet2 = factory.createRuleSet("rulesets/extra2.xml"); + this.ruleSet2 = factory.createRuleSets("rulesets/extra2.xml").getAllRuleSets()[0]; } return this.ruleSet2;