RFR: 8326568: jdk/test/com/sun/net/httpserver/bugs/B6431193.java should use try-with-resource and try-finally

Darragh Clarke dclarke at openjdk.org
Thu Mar 28 13:54:33 UTC 2024


On Wed, 27 Mar 2024 19:39:41 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Good point, looking at it again would it be worthwhile to get rid of the `read` method and just use `is.readAllBytes` in it's place?
>
> Depends on how much data the test actually sends. If it's a small amount readAllBytes is fine.

I think the only data sent is this string: `This is the response`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18514#discussion_r1543020697


More information about the net-dev mailing list