RFR: 8277120: Use Optional.isEmpty instead of !Optional.isPresent in java.net.http

Daniel Fuchs dfuchs at openjdk.java.net
Mon Nov 15 13:23:35 UTC 2021


On Mon, 18 Oct 2021 07:55:52 GMT, Andrey Turbanov <duke at openjdk.java.net> wrote:

> I propose to replace usages of !Optional.isPresent() with Optional.isEmpty method.
> It's makes code a bit easier to read.

LGTM

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

Marked as reviewed by dfuchs (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/5985


More information about the net-dev mailing list