From: Léo Geoffroy Date: Fri, 15 Nov 2024 10:56:53 +0000 (+0100) Subject: NO-JIRA fix sonarqube issue X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=00e684bad92f33d8f46334887ddc61f1c2f6c4c3;p=sonarqube.git NO-JIRA fix sonarqube issue --- diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/badge/ws/MeasureAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/badge/ws/MeasureAction.java index 42867dc0ad5..02c1d8e1e09 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/badge/ws/MeasureAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/badge/ws/MeasureAction.java @@ -74,7 +74,6 @@ import static org.sonar.server.measure.Rating.E; public class MeasureAction extends AbstractProjectBadgesWsAction { private static final String PARAM_METRIC = "metric"; - private final TelemetryBadgeProvider telemetryBadgeProvider; private static final Map METRIC_NAME_BY_KEY = ImmutableMap.builder() .put(COVERAGE_KEY, "coverage") @@ -120,6 +119,7 @@ public class MeasureAction extends AbstractProjectBadgesWsAction { E, Color.RATING_E)); private final DbClient dbClient; + private final TelemetryBadgeProvider telemetryBadgeProvider; public MeasureAction(DbClient dbClient, ProjectBadgesSupport support, SvgGenerator svgGenerator, TelemetryBadgeProvider telemetryBadgeProvider) {