RFR: 8357013: Optimize response code parsing in HttpURLConnection

Daniel Fuchs dfuchs at openjdk.org
Tue May 20 14:02:54 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.

Marked as reviewed by dfuchs (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/25245#pullrequestreview-2854323316


More information about the net-dev mailing list