diff options
author | Stephane Gamard <stephane.gamard@sonarsource.com> | 2014-10-08 11:31:46 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@sonarsource.com> | 2014-10-08 11:31:46 +0200 |
commit | 69dcabfe8af18018db3cd8522b08083ecc306cb2 (patch) | |
tree | aa106132c0c573726aa3ad23e3823e29305f5886 | |
parent | dc8d140fcfd7fbee6b8ffa1c71c832e2d8bb33ec (diff) | |
download | sonarqube-69dcabfe8af18018db3cd8522b08083ecc306cb2.tar.gz sonarqube-69dcabfe8af18018db3cd8522b08083ecc306cb2.zip |
fix quality flaw
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/rule/RuleParamDto.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/rule/RuleParamDto.java b/sonar-core/src/main/java/org/sonar/core/rule/RuleParamDto.java index 7d1436974bc..5cfc054c7a2 100644 --- a/sonar-core/src/main/java/org/sonar/core/rule/RuleParamDto.java +++ b/sonar-core/src/main/java/org/sonar/core/rule/RuleParamDto.java @@ -92,7 +92,8 @@ public class RuleParamDto { } public static RuleParamDto createFor(RuleDto rule) { - return new RuleParamDto(); + // Should eventually switch to RuleKey (RuleKey is available before insert) + return new RuleParamDto().setRuleId(rule.getId()); } } |