]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA fix sonarqube issue
authorLéo Geoffroy <leo.geoffroy@sonarsource.com>
Fri, 15 Nov 2024 10:56:53 +0000 (11:56 +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/badge/ws/MeasureAction.java

index 42867dc0ad5f4197317a32785632b93e361ef62b..02c1d8e1e09115caf7f26eda6ef76d3f37ddb661 100644 (file)
@@ -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<String, String> METRIC_NAME_BY_KEY = ImmutableMap.<String, String>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) {