[ 
https://issues.apache.org/jira/browse/NIFI-14140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17911560#comment-17911560
 ] 

David Handermann commented on NIFI-14140:
-----------------------------------------

Thanks for evaluating this rule implementation [~dstiegli1]. I think it is 
worth including in general, but you will find a number of cases where it is not 
a simple as it appears. There are some cases where try-with-resources blocks 
have unused variables, so those need to be evaluated. As with any type of 
change, this needs to be done carefully to avoid any break in behavior, so it 
may warrant multiple pull requests if there are more obvious changes versus 
more questionable changes. There is also the option to annotate methods to 
suppress warnings when needed.

> Apply PMD's UnusedLocalVariable across the code base
> ----------------------------------------------------
>
>                 Key: NIFI-14140
>                 URL: https://issues.apache.org/jira/browse/NIFI-14140
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to