diff --git a/pmd/src/net/sourceforge/pmd/RuleSetFactory.java b/pmd/src/net/sourceforge/pmd/RuleSetFactory.java index 34fa104b7d..048e0ffb77 100644 --- a/pmd/src/net/sourceforge/pmd/RuleSetFactory.java +++ b/pmd/src/net/sourceforge/pmd/RuleSetFactory.java @@ -147,7 +147,7 @@ public class RuleSetFactory { * @return the new ruleset * @throws RuleSetNotFoundException */ - public RuleSet createSingleRuleSet(String ruleSetFileName, ClassLoader classLoader) + private RuleSet createSingleRuleSet(String ruleSetFileName, ClassLoader classLoader) throws RuleSetNotFoundException { return createRuleSet(tryToGetStreamTo(ruleSetFileName, classLoader), classLoader); } @@ -183,7 +183,7 @@ public class RuleSetFactory { * @param classLoader a class loader used to load rule classes * @return a new ruleset */ - public RuleSet createRuleSet(InputStream inputStream, ClassLoader classLoader) { + private RuleSet createRuleSet(InputStream inputStream, ClassLoader classLoader) { try { this.classLoader = classLoader; DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();