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

Daniel Stieglitz updated NIFI-16068:
------------------------------------
    Status: Patch Available  (was: In Progress)

> Remove unnecessary calls to close() at the end of a try-with-resources block
> ----------------------------------------------------------------------------
>
>                 Key: NIFI-16068
>                 URL: https://issues.apache.org/jira/browse/NIFI-16068
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Trivial
>
> try with resources block guarantees to call the {{close}} method hence it is 
> not necessary to call it explicitly.  Both {{FlowFilePackagerV1}} and 
> {{FlowStatusReport}} call {{{}close{}}}() explicitly in try with resources 
> block and they should be removed.



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

Reply via email to