diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-03-22 17:54:55 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-03-22 17:54:55 +0100 |
commit | 7b9499e5c765523a97b6cf5d4cc157f08d449e78 (patch) | |
tree | 540563f02c9e23d3cac63a2f2f5a734b9745dfcb /sonar-plugin-api/src/main | |
parent | 6bc9a1d45c04a067371834980203ef753d32086d (diff) | |
download | sonarqube-7b9499e5c765523a97b6cf5d4cc157f08d449e78.tar.gz sonarqube-7b9499e5c765523a97b6cf5d4cc157f08d449e78.zip |
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api/src/main')
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionAnnotationLoader.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionAnnotationLoader.java index 13058659411..9be365feb29 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionAnnotationLoader.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionAnnotationLoader.java @@ -74,7 +74,7 @@ public class RulesDefinitionAnnotationLoader { } } - private RulesDefinition.NewRule loadRule(RulesDefinition.NewExtendedRepository repo, Class clazz, org.sonar.check.Rule ruleAnnotation) { + private static RulesDefinition.NewRule loadRule(RulesDefinition.NewExtendedRepository repo, Class clazz, org.sonar.check.Rule ruleAnnotation) { String ruleKey = StringUtils.defaultIfEmpty(ruleAnnotation.key(), clazz.getCanonicalName()); String ruleName = StringUtils.defaultIfEmpty(ruleAnnotation.name(), null); String description = StringUtils.defaultIfEmpty(ruleAnnotation.description(), null); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionXmlLoader.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionXmlLoader.java index 996a044d19b..6ee19d515bd 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionXmlLoader.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinitionXmlLoader.java @@ -232,7 +232,7 @@ public class RulesDefinitionXmlLoader { } } - private void processRule(RulesDefinition.NewRepository repo, SMInputCursor ruleC) throws XMLStreamException { + private static void processRule(RulesDefinition.NewRepository repo, SMInputCursor ruleC) throws XMLStreamException { String key = null; String name = null; String description = null; |