aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-common
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-webserver-common')
-rw-r--r--server/sonar-webserver-common/src/main/java/org/sonar/server/common/rule/RuleCreator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-webserver-common/src/main/java/org/sonar/server/common/rule/RuleCreator.java b/server/sonar-webserver-common/src/main/java/org/sonar/server/common/rule/RuleCreator.java
index 9fabf677093..853cfd0c984 100644
--- a/server/sonar-webserver-common/src/main/java/org/sonar/server/common/rule/RuleCreator.java
+++ b/server/sonar-webserver-common/src/main/java/org/sonar/server/common/rule/RuleCreator.java
@@ -91,7 +91,7 @@ public class RuleCreator {
validateCustomRule(newRule, dbSession, templateKey);
Optional<RuleDto> definition = loadRule(dbSession, newRule.ruleKey());
- RuleDto ruleDto = definition.map(d -> updateExistingRule(d, newRule, dbSession))
+ RuleDto ruleDto = definition.map(dto -> updateExistingRule(dto, newRule, dbSession))
.orElseGet(() -> createCustomRule(newRule, templateRule, dbSession));
ruleIndexer.commitAndIndex(dbSession, ruleDto.getUuid());