diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-03-04 15:47:00 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-03-04 17:48:07 +0100 |
commit | 439960f954249a807ea7c11ba86466c026a84233 (patch) | |
tree | f7b73bed399f751e772f268f4e19a2f8101323e4 /sonar-plugin-api | |
parent | dd17d404a9b1440d45f12e25ad41f294b6b56a34 (diff) | |
download | sonarqube-439960f954249a807ea7c11ba86466c026a84233.tar.gz sonarqube-439960f954249a807ea7c11ba86466c026a84233.zip |
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api')
3 files changed, 3 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/Checks.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/Checks.java index 7f021639917..c223f418a24 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/Checks.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/Checks.java @@ -154,7 +154,7 @@ public class Checks<C> { return StringUtils.defaultIfEmpty(key, clazz.getCanonicalName()); } - private Object instantiate(ActiveRule activeRule, Object checkClassOrInstance) { + private static Object instantiate(ActiveRule activeRule, Object checkClassOrInstance) { try { Object check = checkClassOrInstance; if (check instanceof Class) { diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/checks/AnnotationCheckFactory.java b/sonar-plugin-api/src/main/java/org/sonar/api/checks/AnnotationCheckFactory.java index be86b62992e..397965bac4b 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/checks/AnnotationCheckFactory.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/checks/AnnotationCheckFactory.java @@ -74,7 +74,7 @@ public final class AnnotationCheckFactory extends CheckFactory { return null; } - private Object instantiate(ActiveRule activeRule, Object checkClassOrInstance) { + private static Object instantiate(ActiveRule activeRule, Object checkClassOrInstance) { try { Object check = checkClassOrInstance; if (check instanceof Class) { diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleParser.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleParser.java index fd0df622783..187f835d569 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleParser.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleParser.java @@ -55,7 +55,7 @@ public final class AnnotationRuleParser { return rules; } - private Rule create(String repositoryKey, Class annotatedClass) { + private static Rule create(String repositoryKey, Class annotatedClass) { org.sonar.check.Rule ruleAnnotation = AnnotationUtils.getAnnotation(annotatedClass, org.sonar.check.Rule.class); if (ruleAnnotation != null) { return toRule(repositoryKey, annotatedClass, ruleAnnotation); |