Integrated: 8274394: Use Optional.isEmpty instead of !Optional.isPresent in jdk.jlink
github.com+741251+turbanoff at openjdk.java.net
Tue Sep 28 17:25:33 UTC 2021
On Sun, 26 Sep 2021 13:58:35 GMT, Andrey Turbanov <github.com+741251+turbanoff 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.
> Noticing negation before long chain of method calls is hard.
This pull request has now been integrated.
Author: Andrey Turbanov <turbanoff at gmail.com>
Committer: Mandy Chung <mchung at openjdk.org>
Stats: 8 lines in 5 files changed: 0 ins; 0 del; 8 mod
8274394: Use Optional.isEmpty instead of !Optional.isPresent in jdk.jlink
Reviewed-by: alanb, mchung
More information about the core-libs-dev