@@ -332,19 +332,20 @@ being placed in it. The following example shows how to do so:
332
332
[[expressions-parser-configuration]]
333
333
=== Parser Configuration
334
334
335
- It is possible to configure the SpEL expression parser by using a parser configuration object
336
- (`org.springframework.expression.spel.SpelParserConfiguration`). The configuration
335
+ It is possible to configure the SpEL expression parser by using a parser configuration
336
+ object (`org.springframework.expression.spel.SpelParserConfiguration`). The configuration
337
337
object controls the behavior of some of the expression components. For example, if you
338
- index into an array or collection and the element at the specified index is `null`,
339
- you can automatically create the element. This is useful when using expressions made up of a
340
- chain of property references. If you index into an array or list
341
- and specifying an index that is beyond the end of the current size of the array or
342
- list, you can automatically grow the array or list to accommodate that index. In order to add
343
- an element at the specified index, SpEL will try to create the element using a default
344
- constructor before setting the specified value. If the element type does not have a default
345
- constructor, `null` will be added. Note if there is no built-in or custom converter, that knows
346
- how to set the value, `null` will remain in the array or list at the specified index.
347
- The following example demonstrates how to automatically grow the list:
338
+ index into an array or collection and the element at the specified index is `null`, SpEL
339
+ can automatically create the element. This is useful when using expressions made up of a
340
+ chain of property references. If you index into an array or list and specify an index
341
+ that is beyond the end of the current size of the array or list, SpEL can automatically
342
+ grow the array or list to accommodate that index. In order to add an element at the
343
+ specified index, SpEL will try to create the element using the element type's default
344
+ constructor before setting the specified value. If the element type does not have a
345
+ default constructor, `null` will be added to the array or list. If there is no built-in
346
+ or custom converter that knows how to set the value, `null` will remain in the array or
347
+ list at the specified index. The following example demonstrates how to automatically grow
348
+ the list:
348
349
349
350
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
350
351
.Java
0 commit comments