RFR: 8277120: Use Optional.isEmpty instead of !Optional.isPresent in java.net.http
Alan Bateman
alanb at openjdk.java.net
Tue Dec 7 08:04:20 UTC 2021
On Mon, 15 Nov 2021 13:20:30 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> I propose to replace usages of !Optional.isPresent() with Optional.isEmpty method.
>> It's makes code a bit easier to read.
>
> LGTM
I suspect @dfuch will sponsor this once he's had a chance to run the tests.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5985
More information about the net-dev
mailing list