Github user joewitt commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1564#discussion_r104316147
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ScanAttribute.java
 ---
    @@ -178,20 +226,18 @@ public void onScheduled(final ProcessContext context) 
throws IOException {
                         if (matcher.groupCount() == 1) {
                             matchingTerm = matcher.group(1);
                         } else {
    -                        matchingTerm = line;
    +                        matchingTerm = term;
                         }
                     }
    -
    -                terms.add(matchingTerm);
    +                termsMeta.put(matchingTerm, meta);
                 }
             }
    -
    -        return Collections.unmodifiableSet(terms);
    +        return Collections.unmodifiableMap(termsMeta);
         }
     
         @Override
         public void onTrigger(final ProcessContext context, final 
ProcessSession session) throws ProcessException {
    -        final List<FlowFile> flowFiles = session.get(50);
    +        List<FlowFile> flowFiles = session.get(50);
    --- End diff --
    
    add final back in from the original line 194


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to