RFR: 8347167: Implementation in com.sun.net.httpserver.Headers.normalize() can be improved [v2]

Daniel Fuchs dfuchs at openjdk.org
Tue Nov 18 14:30:09 UTC 2025


On Mon, 17 Nov 2025 16:06:55 GMT, Josiah Noel <duke at openjdk.org> wrote:

>> Following the direction outlined in the net-dev discussion, I've updated the `com.sun.net.httpserver.Headers.normalize()` method to no longer allocate a superfluous char array when the header is already normalized.
>
> Josiah Noel has updated the pull request incrementally with one additional commit since the last revision:
> 
>   patch

LGTM. I also ran some tests and they all came back green. Thanks for this nice improvement @SentryMan and @vy !

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

Marked as reviewed by dfuchs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27276#pullrequestreview-3478107611


More information about the net-dev mailing list