Skip to content

Commit 71f7fdd

Browse files
committed
Polish "Improve unless condition in caching doc"
Closes gh-1387
1 parent c35ddf9 commit 71f7fdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/asciidoc/integration.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8510,7 +8510,8 @@ supported wrapper so the previous example can be rewritten as follows:
85108510
public Optional<Book> findBook(String name)
85118511
----
85128512

8513-
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.
8513+
Note that `result` still refers to `Book` and not `Optional`. As it might be `null`, we
8514+
should use the safe navigation operator.
85148515

85158516
[[cache-spel-context]]
85168517
===== Available caching SpEL evaluation context

0 commit comments

Comments
 (0)