aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-10-23 19:55:28 +0000
committerGodin <mandrikov@gmail.com>2010-10-23 19:55:28 +0000
commit9e297eca1d5db2243c19bf6b52704cb953773562 (patch)
tree835850bb6d8f252e0fbd7a7fdda974e4e00e210c /sonar-server
parentd3840113923f94c33c4ed1f92b137e20f20707a5 (diff)
downloadsonarqube-9e297eca1d5db2243c19bf6b52704cb953773562.tar.gz
sonarqube-9e297eca1d5db2243c19bf6b52704cb953773562.zip
SONAR-1900: Add constructor to DeprecatedProfiles
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/java/org/sonar/server/rules/DeprecatedProfiles.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/rules/DeprecatedProfiles.java b/sonar-server/src/main/java/org/sonar/server/rules/DeprecatedProfiles.java
index fde68c21443..90cf7cb0651 100644
--- a/sonar-server/src/main/java/org/sonar/server/rules/DeprecatedProfiles.java
+++ b/sonar-server/src/main/java/org/sonar/server/rules/DeprecatedProfiles.java
@@ -72,6 +72,14 @@ public final class DeprecatedProfiles {
this.deprecatedCheckProfiles = new CheckProfile[0];
this.deprecatedCheckProfileProviders = new CheckProfileProvider[0];
}
+
+ public DeprecatedProfiles(Plugins plugins, RuleFinder ruleFinder) {
+ this.deprecatedRepositories = new RulesRepository[0];
+ this.plugins = plugins;
+ this.ruleFinder = ruleFinder;
+ this.deprecatedCheckProfiles = new CheckProfile[0];
+ this.deprecatedCheckProfileProviders = new CheckProfileProvider[0];
+ }
public List<ProfileDefinition> getProfiles() {
List<ProfileDefinition> profiles = new ArrayList<ProfileDefinition>();