]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA fix sonarqube issue
authorLéo Geoffroy <leo.geoffroy@sonarsource.com>
Thu, 14 Nov 2024 16:07:30 +0000 (17:07 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 15 Nov 2024 20:02:42 +0000 (20:02 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SetSeverityAction.java

index 1916e6681dc2d99672b9fc33a6d5118220e68c1d..5405b84d6d116b73fe77438b8b59197bb17e6c13 100644 (file)
@@ -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);