NIFI-571: Removed checking List<List<ControllerServiceNode>> to see if it contains a ControllerServiceNode, as it would always return false; intent was to check all inner Lists, but it's really not necessary (a bit of an optimization) that just confuses things

This commit is contained in:
Mark Payne 2015-06-05 16:01:09 -04:00
parent 089897190c
commit facc4242bd
1 changed files with 5 additions and 9 deletions

View File

@ -391,10 +391,6 @@ public class StandardControllerServiceProvider implements ControllerServiceProvi
final List<List<ControllerServiceNode>> orderedNodeLists = new ArrayList<>(); final List<List<ControllerServiceNode>> orderedNodeLists = new ArrayList<>();
for (final ControllerServiceNode node : serviceNodeMap.values()) { for (final ControllerServiceNode node : serviceNodeMap.values()) {
if (orderedNodeLists.contains(node)) {
continue; // this node is already in the list.
}
final List<ControllerServiceNode> branch = new ArrayList<>(); final List<ControllerServiceNode> branch = new ArrayList<>();
determineEnablingOrder(serviceNodeMap, node, branch, new HashSet<ControllerServiceNode>()); determineEnablingOrder(serviceNodeMap, node, branch, new HashSet<ControllerServiceNode>());
orderedNodeLists.add(branch); orderedNodeLists.add(branch);