aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@sonarsource.com>2014-10-08 11:31:46 +0200
committerStephane Gamard <stephane.gamard@sonarsource.com>2014-10-08 11:31:46 +0200
commit69dcabfe8af18018db3cd8522b08083ecc306cb2 (patch)
treeaa106132c0c573726aa3ad23e3823e29305f5886
parentdc8d140fcfd7fbee6b8ffa1c71c832e2d8bb33ec (diff)
downloadsonarqube-69dcabfe8af18018db3cd8522b08083ecc306cb2.tar.gz
sonarqube-69dcabfe8af18018db3cd8522b08083ecc306cb2.zip
fix quality flaw
-rw-r--r--sonar-core/src/main/java/org/sonar/core/rule/RuleParamDto.java3
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());
}
}