aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-common
diff options
context:
space:
mode:
authorlukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com>2023-12-08 07:32:13 +0100
committersonartech <sonartech@sonarsource.com>2023-12-08 20:03:05 +0000
commitf858d78968e5a82dbfcd494838cf46d4577a2211 (patch)
tree2f2ce4fb25b1df805913d0fb9fdfa061a456204a /server/sonar-webserver-common
parenta5ae3c2a46b7426ad0463a9882a5adb9b6e091ef (diff)
downloadsonarqube-f858d78968e5a82dbfcd494838cf46d4577a2211.tar.gz
sonarqube-f858d78968e5a82dbfcd494838cf46d4577a2211.zip
SONAR-21179 Deprecate preventReactivation param
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());