Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
The try-with-resources statement allows writing code dealing with resources in a more compact way. It is no longer necessary to write finally blocks by hand.
This patch replaces as many as possible try statements with the try-with-resources statement.