RFR: 8357013: Optimize response code parsing in HttpURLConnection

Daniel Fuchs dfuchs at openjdk.org
Thu May 15 11:49:52 UTC 2025


On Thu, 15 May 2025 05:14:02 GMT, Patrick Strawderman <duke at openjdk.org> wrote:

> Avoid allocating a substring to parse the response code in HttpURLConnection#getResponseCode, but instead use the Integer.parseInt overload that accepts String indices.

Thanks for this fix. The proposed changes LGTM. Did you run tier2 tests?

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

PR Comment: https://git.openjdk.org/jdk/pull/25245#issuecomment-2883535188


More information about the net-dev mailing list