Skip to content

Commit 288c97b

Browse files
committed
Revised SimpleEvaluationContext example
Issue: SPR-17581
1 parent e95c1b3 commit 288c97b

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
@@ -231,10 +231,10 @@ being placed in it. A simple example:
231231
Simple simple = new Simple();
232232
simple.booleanList.add(true);
233233
234-
EvaluationContext context = SimpleEvaluationContext().forReadOnlyDataBinding().build();
234+
EvaluationContext context = SimpleEvaluationContext.forReadOnlyDataBinding().build();
235235
236-
// false is passed in here as a string. SpEL and the conversion service will
237-
// correctly recognize that it needs to be a Boolean and convert it
236+
// "false" is passed in here as a String. SpEL and the conversion service
237+
// will recognize that it needs to be a Boolean and convert it accordingly.
238238
parser.parseExpression("booleanList[0]").setValue(context, simple, "false");
239239
240240
// b will be false

0 commit comments

Comments
 (0)