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

Daniel Stieglitz edited comment on NIFI-14140 at 1/9/25 9:42 PM:
-----------------------------------------------------------------

[~exceptionfactory] Okay I will try. 

For the original point your brought up regarding try-with-resources blocks have 
unused variables I am finding its enough to rename the variable to ignored (as 
that is what Intellij suggests).

I just noticed the wording in the PMD documentation

{quote}

Detects when a local variable is declared and/or assigned, but not used. 
Variables whose name starts with {{ignored}} or {{unused}} are filtered out.

{quote}


was (Author: JIRAUSER294662):
[~exceptionfactory] Okay I will try. 

For the original point your brought up regarding try-with-resources blocks have 
unused variables I am finding its enough to rename the variable to ignored (as 
that is what Intellij suggests).

> 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