28 Sep
2021
28 Sep
'21
7:46 a.m.
On Sun, 26 Sep 2021 13:58:35 GMT, Andrey Turbanov <github.com+741251+turbanoff@openjdk.org> wrote:
I propose to replace usages of !Optional.isPresent() with Optional.isEmpty method. It's makes code a bit easier to read. Noticing negation before long chain of method calls is hard.
Looks okay, this code pre-dates the isEmpty method. ------------- Marked as reviewed by alanb (Reviewer). PR: https://git.openjdk.java.net/jdk/pull/5707