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

Daniel Stieglitz updated NIFI-16068:
------------------------------------
    Description: 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.  (was: 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.)

> 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}} 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)

Reply via email to