RFR: 8291956: Simplify the loop condition in sun.net.httpserver.Request constructor [v4]

thyecust duke at openjdk.org
Fri Aug 5 23:02:16 UTC 2022


On Fri, 5 Aug 2022 19:14:30 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> LGTM.
>> 
>> We need a Strings utility class! ;-) Strings.isEmptyOrNull !
>
> `java.util.Objects.equals("", startLine)` would work as well. It covers any type.

@RogerRiggs Thanks for your advice 😃

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

PR: https://git.openjdk.org/jdk/pull/9571


More information about the net-dev mailing list