Skip to content

Commit 474ac2d

Browse files
committed
Revised SimpleEvaluationContext example
Issue: SPR-17581
1 parent 6eb0a60 commit 474ac2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/docs/asciidoc/core/core-expressions.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@ being placed in it. The following example shows how to do so:
239239
Simple simple = new Simple();
240240
simple.booleanList.add(true);
241241
242-
EvaluationContext context = SimpleEvaluationContext().forReadOnlyDataBinding().build();
242+
EvaluationContext context = SimpleEvaluationContext.forReadOnlyDataBinding().build();
243243
244-
// false is passed in here as a string. SpEL and the conversion service
245-
// correctly recognize that it needs to be a Boolean and convert it
244+
// "false" is passed in here as a String. SpEL and the conversion service
245+
// will recognize that it needs to be a Boolean and convert it accordingly.
246246
parser.parseExpression("booleanList[0]").setValue(context, simple, "false");
247247
248248
// b is false

0 commit comments

Comments
 (0)