diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-12-05 12:39:26 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-12-05 12:39:26 +0100 |
commit | 331b674d4108b788c6f9645f7658e9c9628899b1 (patch) | |
tree | b135d9d18aa078b4bde201ab46941c3ff0c64d87 /sonar-batch/src | |
parent | 7faee383694f53a6baad3a1a88218c5f4f88578e (diff) | |
download | sonarqube-331b674d4108b788c6f9645f7658e9c9628899b1.tar.gz sonarqube-331b674d4108b788c6f9645f7658e9c9628899b1.zip |
Fix some violations
Diffstat (limited to 'sonar-batch/src')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/DefaultProfileLoader.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/DefaultProfileLoader.java b/sonar-batch/src/main/java/org/sonar/batch/DefaultProfileLoader.java index 648676eb7f2..27829ff9f06 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/DefaultProfileLoader.java +++ b/sonar-batch/src/main/java/org/sonar/batch/DefaultProfileLoader.java @@ -27,8 +27,6 @@ import org.sonar.jpa.dao.ProfilesDao; public class DefaultProfileLoader implements ProfileLoader { static final String PARAM_PROFILE = "sonar.profile"; - private RulesProfile profile; - private ProfilesDao dao; public DefaultProfileLoader(ProfilesDao dao) { @@ -37,6 +35,7 @@ public class DefaultProfileLoader implements ProfileLoader { public RulesProfile load(Project project) { String profileName = (String) project.getProperty(PARAM_PROFILE); + RulesProfile profile; if (profileName == null) { Project root = project.getRoot(); profile = dao.getActiveProfile(root.getLanguageKey(), root.getKey()); @@ -58,7 +57,6 @@ public class DefaultProfileLoader implements ProfileLoader { activeRule.getRule().getParams().size(); } profile.getAlerts().size(); - return profile; } |