From: simonbrandhof Date: Fri, 24 Sep 2010 12:28:01 +0000 (+0000) Subject: add the repository name to the parameters of AnnotationRuleRepository.create() X-Git-Tag: 2.6~952 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=543451b116b814ea1b90223d5f873c176a54f3eb;p=sonarqube.git add the repository name to the parameters of AnnotationRuleRepository.create() --- diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleRepository.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleRepository.java index 984f710b944..ed8292a89ce 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleRepository.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleRepository.java @@ -42,13 +42,14 @@ public final class AnnotationRuleRepository extends RuleRepository { /** * Use the factory method create() */ - private AnnotationRuleRepository(String key, String language, Collection annotatedClasses) { + private AnnotationRuleRepository(String key, String language, String name, Collection annotatedClasses) { super(key, language); + setName(name); this.annotatedClasses = annotatedClasses; } - public static AnnotationRuleRepository create(String key, String language, Collection annotatedClasses) { - return new AnnotationRuleRepository(key, language, annotatedClasses); + public static AnnotationRuleRepository create(String key, String language, String name, Collection annotatedClasses) { + return new AnnotationRuleRepository(key, language, name, annotatedClasses); } @Override