[
https://issues.apache.org/jira/browse/NIFI-16041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard updated NIFI-16041:
----------------------------------
Fix Version/s: 2.11.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
> Apply Pattern variable where possible
> -------------------------------------
>
> Key: NIFI-16041
> URL: https://issues.apache.org/jira/browse/NIFI-16041
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Daniel Stieglitz
> Assignee: Daniel Stieglitz
> Priority: Minor
> Fix For: 2.11.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Running Intellij
> Analyze -> Run Inspection by Name -> Pattern variable can be used
> indicates there are over 150 places in the code where the Pattern variable
> cab be used.
> Using pattern variable will allow for simplifying the code and removing an
> unnecessary cast.
> More information on pattern variables can be found
> [here|https://docs.oracle.com/en/java/javase/17/language/pattern-matching-instanceof.html]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)