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:
dan-s1 2024-05-27 20:26:20 +00:00 committed by exceptionfactory
parent 2598068b31
commit a1a7c3c5a5
No known key found for this signature in database
1 changed files with 0 additions and 2 deletions

View File

@ -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);
}