Browse Source

Polish "Improve unless condition in caching doc"

Closes gh-1387
pull/1392/head
Stephane Nicoll 8 years ago
parent
commit
7084bc293a
  1. 3
      src/docs/asciidoc/integration.adoc

3
src/docs/asciidoc/integration.adoc

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

Loading…
Cancel
Save