On Wed, 6 Oct 2021 16:00:41 GMT, Bradford Wetmore <wetm...@openjdk.org> wrote:

>> 8274809: Update java.base classes to use try-with-resources
>
> src/java.base/share/classes/sun/security/timestamp/HttpTimestamper.java line 
> 127:
> 
>> 125:         // Receive the reply
>> 126:         byte[] replyBuffer = null;
>> 127:         try (BufferedInputStream input = new 
>> BufferedInputStream(connection.getInputStream())) {
> 
> Same comment as above.

In this and the immediately preceding case, it might be better to use `var`.

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

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

Reply via email to