From 474ac2d9755718364b661e8acf3710c97a6cda09 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 12 Dec 2018 12:11:15 +0100 Subject: [PATCH] Revised SimpleEvaluationContext example Issue: SPR-17581 --- src/docs/asciidoc/core/core-expressions.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/docs/asciidoc/core/core-expressions.adoc b/src/docs/asciidoc/core/core-expressions.adoc index 57b8437cd2..e420a02c73 100644 --- a/src/docs/asciidoc/core/core-expressions.adoc +++ b/src/docs/asciidoc/core/core-expressions.adoc @@ -239,10 +239,10 @@ being placed in it. The following example shows how to do so: Simple simple = new Simple(); simple.booleanList.add(true); - EvaluationContext context = SimpleEvaluationContext().forReadOnlyDataBinding().build(); + EvaluationContext context = SimpleEvaluationContext.forReadOnlyDataBinding().build(); - // false is passed in here as a string. SpEL and the conversion service - // correctly recognize that it needs to be a Boolean and convert it + // "false" is passed in here as a String. SpEL and the conversion service + // will recognize that it needs to be a Boolean and convert it accordingly. parser.parseExpression("booleanList[0]").setValue(context, simple, "false"); // b is false