Skip to content

Need a utility to close multiple AutoCloseabless #3465

Open
@ohadzeliger

Description

@ohadzeliger

When a class has multiple AutoCloseable fields it manages and its lifecycle does not allow them to be closed by a try-with-resources block, it is useful to have a utility that closes all of them and throws any caught exceptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions