RFR: 8277120: Use Optional.isEmpty instead of !Optional.isPresent in java.net.http
Andrey Turbanov
duke at openjdk.java.net
Mon Nov 15 12:43:48 UTC 2021
I propose to replace usages of !Optional.isPresent() with Optional.isEmpty method.
It's makes code a bit easier to read.
-------------
Commit messages:
- [PATCH] Use Optional.isEmpty instead of !Optional.isPresent in java.net.http
Changes: https://git.openjdk.java.net/jdk/pull/5985/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5985&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8277120
Stats: 13 lines in 5 files changed: 0 ins; 3 del; 10 mod
Patch: https://git.openjdk.java.net/jdk/pull/5985.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/5985/head:pull/5985
PR: https://git.openjdk.java.net/jdk/pull/5985
More information about the net-dev
mailing list