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

Alan Bateman alanb at openjdk.java.net
Tue Dec 7 08:03:21 UTC 2021


On Wed, 6 Oct 2021 20:37:29 GMT, Andrey Turbanov <duke at openjdk.java.net> wrote:

>> 8274809: Update java.base classes to use try-with-resources
>
> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8274809: Update java.base classes to use try-with-resources
>   fix review comments

Marked as reviewed by alanb (Reviewer).

src/java.base/share/classes/sun/net/NetProperties.java line 73:

> 71:             try (FileInputStream in = new FileInputStream(fname);
> 72:                  BufferedInputStream bin = new BufferedInputStream(in))
> 73:             {

Style-wide I'd probably put the "{" at the end of L72.

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

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


More information about the security-dev mailing list