summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-02-04 13:43:03 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-02-04 13:43:03 +0100
commit9b57d0b379935e053ef050b0379c65fc32810bc1 (patch)
tree329c41fac9a3a490a5db3cd50cf3348fb93e2cb1 /sonar-server
parent181202a7bcc7764e16c05f8ad93ef748dcc1985b (diff)
downloadsonarqube-9b57d0b379935e053ef050b0379c65fc32810bc1.tar.gz
sonarqube-9b57d0b379935e053ef050b0379c65fc32810bc1.zip
Fix bug on deprecated profiles
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/java/org/sonar/server/rules/DeprecatedProfiles.java4
1 files changed, 2 insertions, 2 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 40ed1877b07..7d61dc8ccb8 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
@@ -103,7 +103,7 @@ public final class DeprecatedProfiles {
for (int index = 0; index < repository.getProvidedProfiles().size(); index++) {
RulesProfile deprecated = (RulesProfile) repository.getProvidedProfiles().get(index);
DefaultProfileDefinition providedProfile = DefaultProfileDefinition.create(deprecated.getName(), repository.getLanguage().getKey());
- for (ActiveRule deprecatedActiveRule : deprecated.getActiveRules()) {
+ for (ActiveRule deprecatedActiveRule : deprecated.getActiveRules(true)) {
String repositoryKey = deprecatedActiveRule.getRepositoryKey();
if (StringUtils.isBlank(repositoryKey)) {
repositoryKey = getPluginKey(repository);
@@ -161,7 +161,7 @@ public final class DeprecatedProfiles {
}
public List<ActiveRule> getRules() {
- return profile.getActiveRules();
+ return profile.getActiveRules(true);
}
public List<ActiveRule> getRulesByRepositoryKey(String repositoryKey) {