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.
Since we no longer use
Cobertura, we can forcetry-with-resourcesin the code.There is a couple of Idea rules for that:
and one Eclipse JDT problem:
If an auto closeable resource can not be wrapped with
try-with-resources, the violation should be suppressed.