On Mon, 18 Oct 2021 07:55:52 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:
> I propose to replace usages of !Optional.isPresent() with Optional.isEmpty > method. > It's makes code a bit easier to read. This pull request has now been integrated. Changeset: 47b1c51b Author: Andrey Turbanov <aturba...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/47b1c51bbd28582d209db07052e553a76acced65 Stats: 11 lines in 5 files changed: 0 ins; 2 del; 9 mod 8277120: Use Optional.isEmpty instead of !Optional.isPresent in java.net.http Reviewed-by: dfuchs ------------- PR: https://git.openjdk.java.net/jdk/pull/5985