RFR: 8274809: Update java.base classes to use try-with-resources [v4]

Andrey Turbanov duke at openjdk.java.net
Fri Dec 10 18:25:16 UTC 2021


On Thu, 9 Dec 2021 01:25:20 GMT, Bradford Wetmore <wetmore at openjdk.org> wrote:

>> That's one of the places where I personally would always use the var keyword too: it makes the line shorter and the type is already clearly visible in the RHS of the assignment, so repeating it on the left hand side does not bring much value...
>
> Just interesting that the style wasn't consistent.  Both ways are fine by me.

I used `var` only in places, where it allows to reduce line length to be less than 80.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5818


More information about the security-dev mailing list