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

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

[~exceptionfactory]

How about WriteAheadLocalStateProvider on line 113?
{code:java}
int numPartitions = context.getProperty(NUM_PARTITIONS).asInteger();{code}
PMD is reporting numPartitions is never used. Can I remove this?

 

StandardNiFiServiceFacade on line 3466
{code:java}
final PermissionsDTO operatePermissions = dtoFactory.createPermissionsDto(new 
OperationAuthorizable(parameterProvider));{code}
Do I ignore the PMD warning or can I remove the variable but just still have 
the call 
{code:java}
dtoFactory.createPermissionsDto(new 
OperationAuthorizable(parameterProvider));{code}


was (Author: JIRAUSER294662):
[~exceptionfactory] How about WriteAheadLocalStateProvider on line 113?
{code:java}
int numPartitions = context.getProperty(NUM_PARTITIONS).asInteger();{code}
PMD is reporting numPartitions is never used. Can I remove this?

 

> 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