You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/07/06 08:41:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=18093937#comment-18093937 ] 

ASF subversion and git services commented on NIFI-16068:
--------------------------------------------------------

Commit d54eeba905b3b5409f6abd738ca6b8e11f9a6b60 in nifi's branch refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=d54eeba905b ]

NIFI-16068 Removed unnecessary calls to close() and flush() at the end of a try-with-resources block (#11388)

> 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
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> try with resources block guarantees to call the {{close}} and flush methods hence it is not necessary to call them explicitly.  Both {{FlowFilePackagerV1}} and {{FlowStatusReport}} call {{{}close{}}}() explicitly and {{FlowStatusReport}} calls {{flush}} in try with resources block and they should be removed



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