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

Roger Riggs rriggs at openjdk.org
Fri Aug 5 19:18:13 UTC 2022


On Fri, 5 Aug 2022 18:58:26 GMT, Chris Hegarty <chegar at openjdk.org> wrote:

>> One or the other :-)
>
> LGTM.
> 
> We need a Strings utility class! ;-) Strings.isEmptyOrNull !

`java.util.Objects.equals("", startLine)` would work as well. It covers any type.

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

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


More information about the net-dev mailing list