Skip to content

Commit 7084bc2

Browse files
committed
Polish "Improve unless condition in caching doc"
Closes gh-1387
1 parent b426d84 commit 7084bc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/docs/asciidoc/integration.adoc

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

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

83368337
[[cache-spel-context]]
83378338
===== Available caching SpEL evaluation context

0 commit comments

Comments
 (0)