From a1a7c3c5a5779477d4b20027a57a22390095303a Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Mon, 27 May 2024 20:26:20 +0000 Subject: [PATCH] NIFI-13298 Removed unused instantiated java.util.HashSet from RouteAttribute This closes #8883 Signed-off-by: David Handermann --- .../org/apache/nifi/processors/standard/RouteOnAttribute.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnAttribute.java b/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnAttribute.java index 200f7cb933..f88392dfb8 100644 --- a/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnAttribute.java +++ b/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnAttribute.java @@ -349,13 +349,11 @@ public class RouteOnAttribute extends AbstractProcessor { final Iterator relationshipNameIterator = destinationRelationships.iterator(); final Relationship firstRelationship = relationshipNameIterator.next(); final Map transferMap = new HashMap<>(); - final Set 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); }