From 838f7d2d80e9e4d39501e84fd194f074dde99efc Mon Sep 17 00:00:00 2001 From: =?utf8?q?L=C3=A9o=20Geoffroy?= Date: Thu, 14 Nov 2024 17:07:30 +0100 Subject: [PATCH] NO-JIRA fix sonarqube issue --- .../java/org/sonar/server/issue/ws/SetSeverityAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetSeverityAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetSeverityAction.java index 1916e6681dc..5405b84d6d1 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetSeverityAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetSeverityAction.java @@ -43,7 +43,7 @@ import org.sonar.server.issue.IssueFinder; import org.sonar.server.pushapi.issues.IssueChangeEventService; import org.sonar.server.user.UserSession; -import static org.sonar.api.server.rule.internal.ImpactMapper.convertToDeprecatedSeverity; +import static org.sonar.api.server.rule.internal.ImpactMapper.convertToRuleSeverity; import static org.sonar.api.server.rule.internal.ImpactMapper.convertToRuleType; import static org.sonar.api.server.rule.internal.ImpactMapper.convertToSoftwareQuality; import static org.sonar.api.web.UserRole.ISSUE_ADMIN; @@ -164,7 +164,7 @@ public class SetSeverityAction implements IssuesWsAction { String manualSeverity = null; boolean severityHasChanged = false; if (convertToRuleType(softwareQuality).equals(issue.type())) { - manualSeverity = convertToDeprecatedSeverity(manualImpactSeverity); + manualSeverity = convertToRuleSeverity(manualImpactSeverity); severityHasChanged = issueFieldsSetter.setManualSeverity(issue, manualSeverity, context); } BranchDto branch = issueUpdater.getBranch(session, issue); -- 2.39.5