Polish "Improve unless condition in caching doc"

Closes gh-1387
This commit is contained in:
Stephane Nicoll 2017-04-13 17:50:11 +02:00
parent c35ddf905a
commit 71f7fdd632
1 changed files with 2 additions and 1 deletions

View File

@ -8510,7 +8510,8 @@ supported wrapper so the previous example can be rewritten as follows:
public Optional<Book> 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