juldrixx commented on code in PR #6011:
URL: https://github.com/apache/nifi/pull/6011#discussion_r865616151


##########
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/QueryRecord.java:
##########
@@ -312,6 +317,7 @@ public void onTrigger(final ProcessContext context, final 
ProcessSession session
                     final QueryResult queryResult = query(session, original, 
readerSchema, sql, recordReaderFactory);
 
                     final AtomicReference<String> mimeTypeRef = new 
AtomicReference<>();
+                    final FlowFile originalFlowFile = original;

Review Comment:
   Yes I need a final variable for the inner class so I don't get this error: 
`Variable 'original' is accessed from within inner class, needs to be final or 
effectively final`.
   
   The same was done for the AbstractRecordProcessor class 
[here](https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AbstractRecordProcessor.java#L119).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to