diff options
Diffstat (limited to 'plugins/sonar-checkstyle-plugin/src')
-rw-r--r-- | plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleRuleRepository.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleRuleRepository.java b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleRuleRepository.java index 5d7073f266e..ee533a1cffa 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleRuleRepository.java +++ b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleRuleRepository.java @@ -23,7 +23,7 @@ import org.sonar.api.platform.ServerFileSystem; import org.sonar.api.resources.Java; import org.sonar.api.rules.Rule; import org.sonar.api.rules.RuleRepository; -import org.sonar.api.rules.StandardRuleXmlFormat; +import org.sonar.api.rules.XMLRuleParser; import java.io.File; import java.util.ArrayList; @@ -43,9 +43,9 @@ public final class CheckstyleRuleRepository extends RuleRepository { @Override public List<Rule> createRules() { List<Rule> rules = new ArrayList<Rule>(); - rules.addAll(StandardRuleXmlFormat.parseXml(getClass().getResourceAsStream("/org/sonar/plugins/checkstyle/rules.xml"))); + rules.addAll(XMLRuleParser.parseXML(getClass().getResourceAsStream("/org/sonar/plugins/checkstyle/rules.xml"))); for (File userExtensionXml : fileSystem.getExtensions(CheckstyleConstants.REPOSITORY_KEY, "xml")) { - rules.addAll(StandardRuleXmlFormat.parseXml(userExtensionXml)); + rules.addAll(XMLRuleParser.parseXML(userExtensionXml)); } return rules; } |