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

Daniel Stieglitz commented on NIFI-14775:
-----------------------------------------

[~exceptionfactory] I am noticing this PMD also flags the use of final in a try 
resource as it is not necessary since the resource is implicitly final. Sample 
output from the Maven plugin is
{code:java}
Rule:UnnecessaryModifier Priority:3 Unnecessary modifier 'final' on resource 
specification 'inputStream': resource specifications are implicitly final.{code}
Are you okay with the removal of those? There seems to be a lot of those in the 
code.

> Implement PMD rule UnnecessaryModifier
> --------------------------------------
>
>                 Key: NIFI-14775
>                 URL: https://issues.apache.org/jira/browse/NIFI-14775
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>
> NIFI-14771 addressed the removal of public static final modifiers from 
> interfaces. PMD rule UnnecessaryModifier will help enforce this moving 
> forward.
> More details regarding this rule can be found at 
> https://pmd.github.io/pmd/pmd_rules_java_codestyle.html#unnecessarymodifier



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

Reply via email to