Skip to content

Activate checks related to java.io.Closeable  #5752

@pbludov

Description

@pbludov

Since we no longer use Cobertura, we can force try-with-resources in the code.
There is a couple of Idea rules for that:

  • AutoCloseableResource
  • TryFinallyCanBeTryWithResources

and one Eclipse JDT problem:

  • explicitlyClosedAutoCloseable

If an auto closeable resource can not be wrapped with try-with-resources, the violation should be suppressed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions