RFR: 8291956: Simplify the loop condition in sun.net.httpserver.Request constructor [v4]
Chris Hegarty
chegar at openjdk.org
Fri Aug 5 19:02:12 UTC 2022
On Fri, 5 Aug 2022 17:21:47 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Right - which reminds me `String.equals("")` is an anti-pattern that should probably be replaced by `String.isEmpty()`
>
> One or the other :-)
LGTM.
We need a Strings utility class! ;-) Strings.isEmptyOrNull !
-------------
PR: https://git.openjdk.org/jdk/pull/9571
More information about the net-dev
mailing list