diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2019-05-03 22:04:57 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-05-22 20:21:16 +0200 |
commit | edbce3b7a43006e14d6fd6d408ad1549ddac3c84 (patch) | |
tree | e9fd0fe93474f9493f976ad3c70ebd3a9101ff44 /server/sonar-ce-task-projectanalysis | |
parent | 948c78485a3ca361d8bcec9d9da9195a2a1f32fb (diff) | |
download | sonarqube-edbce3b7a43006e14d6fd6d408ad1549ddac3c84.tar.gz sonarqube-edbce3b7a43006e14d6fd6d408ad1549ddac3c84.zip |
Fix Quality flaws
Diffstat (limited to 'server/sonar-ce-task-projectanalysis')
-rw-r--r-- | server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/api/posttask/PostProjectAnalysisTasksExecutor.java | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/api/posttask/PostProjectAnalysisTasksExecutor.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/api/posttask/PostProjectAnalysisTasksExecutor.java index bf234604874..a75d150d79c 100644 --- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/api/posttask/PostProjectAnalysisTasksExecutor.java +++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/api/posttask/PostProjectAnalysisTasksExecutor.java @@ -76,17 +76,17 @@ public class PostProjectAnalysisTasksExecutor implements ComputationStepExecutor * Constructor used by Pico when there is no {@link PostProjectAnalysisTask} in the container. */ public PostProjectAnalysisTasksExecutor(org.sonar.ce.task.CeTask ceTask, - AnalysisMetadataHolder analysisMetadataHolder, - QualityGateHolder qualityGateHolder, QualityGateStatusHolder qualityGateStatusHolder, - BatchReportReader reportReader, System2 system2) { + AnalysisMetadataHolder analysisMetadataHolder, + QualityGateHolder qualityGateHolder, QualityGateStatusHolder qualityGateStatusHolder, + BatchReportReader reportReader, System2 system2) { this(ceTask, analysisMetadataHolder, qualityGateHolder, qualityGateStatusHolder, reportReader, system2, null); } public PostProjectAnalysisTasksExecutor(org.sonar.ce.task.CeTask ceTask, - AnalysisMetadataHolder analysisMetadataHolder, - QualityGateHolder qualityGateHolder, QualityGateStatusHolder qualityGateStatusHolder, - BatchReportReader reportReader, System2 system2, - @Nullable PostProjectAnalysisTask[] postProjectAnalysisTasks) { + AnalysisMetadataHolder analysisMetadataHolder, + QualityGateHolder qualityGateHolder, QualityGateStatusHolder qualityGateStatusHolder, + BatchReportReader reportReader, System2 system2, + @Nullable PostProjectAnalysisTask[] postProjectAnalysisTasks) { this.analysisMetadataHolder = analysisMetadataHolder; this.qualityGateHolder = qualityGateHolder; this.qualityGateStatusHolder = qualityGateStatusHolder; @@ -126,8 +126,7 @@ public class PostProjectAnalysisTasksExecutor implements ComputationStepExecutor ScannerContextImpl.from(reportReader.readContextProperties()), status == SUCCESS ? createQualityGate() : null, createBranch(), - reportReader.readMetadata().getScmRevisionId() - ); + reportReader.readMetadata().getScmRevisionId()); } @CheckForNull @@ -144,9 +143,8 @@ public class PostProjectAnalysisTasksExecutor implements ComputationStepExecutor if (analysisDate != null) { return of(new AnalysisImpl(analysisMetadataHolder.getUuid(), analysisDate)); - } else { - return empty(); } + return empty(); } private static Project createProject(org.sonar.ce.task.CeTask ceTask) { |