mirror of https://github.com/apache/nifi.git
NIFI-13298 Removed unused instantiated java.util.HashSet from RouteAttribute
This closes #8883 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
2598068b31
commit
a1a7c3c5a5
|
@ -349,13 +349,11 @@ public class RouteOnAttribute extends AbstractProcessor {
|
|||
final Iterator<Relationship> relationshipNameIterator = destinationRelationships.iterator();
|
||||
final Relationship firstRelationship = relationshipNameIterator.next();
|
||||
final Map<Relationship, FlowFile> transferMap = new HashMap<>();
|
||||
final Set<FlowFile> clones = new HashSet<>();
|
||||
|
||||
// make all the clones for any remaining relationships
|
||||
while (relationshipNameIterator.hasNext()) {
|
||||
final Relationship relationship = relationshipNameIterator.next();
|
||||
final FlowFile cloneFlowFile = session.clone(flowFile);
|
||||
clones.add(cloneFlowFile);
|
||||
transferMap.put(relationship, cloneFlowFile);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue