We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ff1b0e commit b00f98fCopy full SHA for b00f98f
src/asciidoc/core-expressions.adoc
@@ -232,11 +232,10 @@ being placed in it. A simple example:
232
Simple simple = new Simple();
233
simple.booleanList.add(true);
234
235
- SimpleEvaluationContext context = SimpleEvaluationContext().create();
236
-
237
- // false is passed in here as a string. SpEL and the conversion service will
238
- // correctly recognize that it needs to be a Boolean and convert it
+ EvaluationContext context = SimpleEvaluationContext.forReadOnlyDataBinding().build();
239
+ // "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.
240
parser.parseExpression("booleanList[0]").setValue(context, simple, "false");
241
242
// b will be false
0 commit comments