Corrects code to remove bug reports from Sonar Report

Resolves #478
This commit is contained in:
Glenn Renfro
2018-11-12 14:54:47 -05:00
parent 9d38c9a86d
commit f083d7a7ff
6 changed files with 8 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ package org.springframework.cloud.task.batch.partition;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
@@ -246,7 +247,7 @@ public class DeployerPartitionHandler implements PartitionHandler, EnvironmentAw
final Set<StepExecution> executed = new HashSet<>(candidates.size());
if (CollectionUtils.isEmpty(candidates)) {
return null;
return Collections.emptySet();
}
launchWorkers(candidates, executed);