From: Léo Geoffroy Date: Thu, 9 Nov 2023 12:08:13 +0000 (+0100) Subject: NO-JIRA fix code smells X-Git-Tag: 10.4.0.87286~484 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=58e46acbf719e95e905d4f3688dfe489979caf89;p=sonarqube.git NO-JIRA fix code smells --- diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/PersistLiveMeasuresStep.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/PersistLiveMeasuresStep.java index 3b922906b8a..4bfd611069b 100644 --- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/PersistLiveMeasuresStep.java +++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/PersistLiveMeasuresStep.java @@ -92,7 +92,6 @@ import static org.sonar.api.measures.CoreMetrics.STATEMENTS_KEY; import static org.sonar.api.measures.CoreMetrics.TECHNICAL_DEBT_KEY; import static org.sonar.api.measures.CoreMetrics.VIOLATIONS_KEY; import static org.sonar.api.measures.CoreMetrics.VULNERABILITIES_KEY; -import static org.sonar.api.measures.CoreMetrics.WONT_FIX_ISSUES_KEY; import static org.sonar.ce.task.projectanalysis.component.ComponentVisitor.Order.PRE_ORDER; public class PersistLiveMeasuresStep implements ComputationStep { diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/SearchHistoryResponseFactory.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/SearchHistoryResponseFactory.java index 02454a86537..c213cba9922 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/SearchHistoryResponseFactory.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/SearchHistoryResponseFactory.java @@ -109,13 +109,6 @@ class SearchHistoryResponseFactory { return analysis; } - private UnaryOperator clearMetric() { - return metric -> { - measure.clear(); - return metric; - }; - } - private UnaryOperator clearValue() { return analysis -> { value.clear();