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

Daniel Stieglitz commented on NIFI-14140:
-----------------------------------------

[~exceptionfactory] BTW it looks like in Java 22 by using an underscore for the 
variable name, the warning is avoided e.g.
{code:java}
try (FileInputStream _ = new FileInputStream("file.txt")) {
} {code}

> 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