diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-30 09:00:18 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-30 09:00:18 +0000 |
commit | 2c7c234cf1cf4c8b104b970a5cad30089cb6c043 (patch) | |
tree | 4d4fa070d9c38e438de5f7f45798cd86f1e11841 /plugins/sonar-checkstyle-plugin/src | |
parent | 40222de99b59be01a4640444a4d8caf8cc9284cf (diff) | |
download | sonarqube-2c7c234cf1cf4c8b104b970a5cad30089cb6c043.tar.gz sonarqube-2c7c234cf1cf4c8b104b970a5cad30089cb6c043.zip |
rename org.sonar.api.rules.StandardRuleXmlFormat to XMLRuleParser
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; } |