From 71f7fdd6326700f3fcd6a168eb662c3c2fd567dd Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 13 Apr 2017 17:50:11 +0200 Subject: [PATCH] Polish "Improve unless condition in caching doc" Closes gh-1387 --- src/asciidoc/integration.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/asciidoc/integration.adoc b/src/asciidoc/integration.adoc index 7e752a8cac6..52613cf43c2 100644 --- a/src/asciidoc/integration.adoc +++ b/src/asciidoc/integration.adoc @@ -8510,7 +8510,8 @@ supported wrapper so the previous example can be rewritten as follows: public Optional findBook(String name) ---- -Note that `result` still refers to `Book` and not `Optional`. Also, we are using the safe navigation operator here to accommodate the fact that the `Optional` maybe empty. +Note that `result` still refers to `Book` and not `Optional`. As it might be `null`, we +should use the safe navigation operator. [[cache-spel-context]] ===== Available caching SpEL evaluation context