[ 
https://issues.apache.org/jira/browse/NIFI-16356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Stieglitz updated NIFI-16356:
------------------------------------
    Description: 
Running Intellij

Analyze -> Run Inspection by Name -> Redundant type cast

Seems 3 instances were added since NIFI-16122. The PMD rule {{UnnecessaryCast}} 
did not catch these rule because of how the rule handles generic type erasure 
and mock framework return types.

The purpose of this ticket is to remove these unnecessary casts.

  was:
Running Intellij

Analyze -> Run Inspection by Name -> Redundant type cast

indicates there are many places in the code where there are unnecessary casts.

The purpose of this ticket is to remove these unnecessary casts and implement 
the use of the PMD rule {{UnnecessaryCast}} which will prevent unnecessary 
casts in the future.


> Remove Redundant Type Casts II
> ------------------------------
>
>                 Key: NIFI-16356
>                 URL: https://issues.apache.org/jira/browse/NIFI-16356
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Trivial
>
> Running Intellij
> Analyze -> Run Inspection by Name -> Redundant type cast
> Seems 3 instances were added since NIFI-16122. The PMD rule 
> {{UnnecessaryCast}} did not catch these rule because of how the rule handles 
> generic type erasure and mock framework return types.
> The purpose of this ticket is to remove these unnecessary casts.



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

Reply via email to