diff options
author | Klaudio Sinani <klaudio.sinani@sonarsource.com> | 2022-11-14 15:29:00 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-11-15 20:02:59 +0000 |
commit | 3c8379f8dac6872ce030dd3b3c824e4e69b76fc2 (patch) | |
tree | 2aeae95b83827d81f7a8a30aab0ecb922244292e /server/sonar-ce-task-projectanalysis | |
parent | 4d156d7cffcd7379b3dcac2a36946bcbeab8077f (diff) | |
download | sonarqube-3c8379f8dac6872ce030dd3b3c824e4e69b76fc2.tar.gz sonarqube-3c8379f8dac6872ce030dd3b3c824e4e69b76fc2.zip |
[NO-JIRA] Fix reported code smells
Diffstat (limited to 'server/sonar-ce-task-projectanalysis')
3 files changed, 0 insertions, 5 deletions
diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/formula/coverage/CoverageUtils.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/formula/coverage/CoverageUtils.java index 876ce18cc4c..e54b518dff3 100644 --- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/formula/coverage/CoverageUtils.java +++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/formula/coverage/CoverageUtils.java @@ -19,7 +19,6 @@ */ package org.sonar.ce.task.projectanalysis.formula.coverage; -import java.util.Optional; import org.sonar.ce.task.projectanalysis.formula.CounterInitializationContext; import org.sonar.ce.task.projectanalysis.measure.Measure; diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/measure/BestValueOptimization.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/measure/BestValueOptimization.java index e30cf81f572..66b03e9b7ff 100644 --- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/measure/BestValueOptimization.java +++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/measure/BestValueOptimization.java @@ -25,7 +25,6 @@ import org.sonar.ce.task.projectanalysis.component.Component; import org.sonar.ce.task.projectanalysis.metric.Metric; import static java.util.Objects.requireNonNull; -import static org.apache.commons.lang.math.NumberUtils.compare; import static org.sonar.ce.task.projectanalysis.measure.Measure.ValueType.NO_VALUE; public class BestValueOptimization implements Predicate<Measure> { diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/LoadPeriodsStep.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/LoadPeriodsStep.java index 19853944a19..87366dd2b74 100644 --- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/LoadPeriodsStep.java +++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/LoadPeriodsStep.java @@ -19,10 +19,7 @@ */ package org.sonar.ce.task.projectanalysis.step; -import java.util.Arrays; -import java.util.Collection; import java.util.Optional; -import java.util.function.Supplier; import org.sonar.api.utils.System2; import org.sonar.ce.task.log.CeTaskMessages; import org.sonar.ce.task.log.CeTaskMessages.Message; |