RFR: 8357013: HttpURLConnection#getResponseCode can avoid substring call when parsing to int

duke duke at openjdk.org
Tue May 20 15:58: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.

@kilink 
Your change (at version b2d42d35a1d113649adb696646218d8b63bce9c5) is now ready to be sponsored by a Committer.

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

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


More information about the net-dev mailing list