aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-checkstyle-plugin/src
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-09-30 09:00:18 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-09-30 09:00:18 +0000
commit2c7c234cf1cf4c8b104b970a5cad30089cb6c043 (patch)
tree4d4fa070d9c38e438de5f7f45798cd86f1e11841 /plugins/sonar-checkstyle-plugin/src
parent40222de99b59be01a4640444a4d8caf8cc9284cf (diff)
downloadsonarqube-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.java6
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;
}