From d8667155567f99dbc56d5698f77e86db2b290d1c Mon Sep 17 00:00:00 2001 From: "Michael J. Simons" Date: Thu, 13 Apr 2017 08:08:52 +0200 Subject: [PATCH] Polish condition in caching examples Closes gh-1386 --- src/asciidoc/integration.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/asciidoc/integration.adoc b/src/asciidoc/integration.adoc index 618b2dd090..9183af48be 100644 --- a/src/asciidoc/integration.adoc +++ b/src/asciidoc/integration.adoc @@ -8483,7 +8483,7 @@ if the argument `name` has a length shorter than 32: [source,java,indent=0] [subs="verbatim,quotes"] ---- - @Cacheable(cacheNames="book", **condition="#name.length < 32"**) + @Cacheable(cacheNames="book", **condition="#name.length() < 32"**) public Book findBook(String name) ---- @@ -8495,7 +8495,7 @@ only want to cache paperback books: [source,java,indent=0] [subs="verbatim,quotes"] ---- - @Cacheable(cacheNames="book", condition="#name.length < 32", **unless="#result.hardback"**) + @Cacheable(cacheNames="book", condition="#name.length() < 32", **unless="#result.hardback"**) public Book findBook(String name) ---- @@ -8506,7 +8506,7 @@ supported wrapper so the previous example can be rewritten as follows: [source,java,indent=0] [subs="verbatim,quotes"] ---- - @Cacheable(cacheNames="book", condition="#name.length < 32", **unless="#result.hardback"**) + @Cacheable(cacheNames="book", condition="#name.length() < 32", **unless="#result.hardback"**) public Optional findBook(String name) ----