You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Stieglitz (Jira)" <ji...@apache.org> on 2026/07/02 17:05:00 UTC

[jira] [Updated] (NIFI-16068) Remove unnecessary calls to close() and flush at the end of a try-with-resources block

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

Daniel Stieglitz updated NIFI-16068:
------------------------------------
    Summary: Remove unnecessary calls to close() and flush at the end of a try-with-resources block  (was: Remove unnecessary calls to close() at the end of a try-with-resources block)

> Remove unnecessary calls to close() and flush 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)