Skip to content

Commit e2646fe

Browse files
committed
Fix applicability note on setAutoGrowCollectionLimit
Closes gh-36863 (cherry picked from commit ecc847c)
1 parent a228185 commit e2646fe

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

spring-beans/src/main/java/org/springframework/beans/ConfigurablePropertyAccessor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,14 @@ public interface ConfigurablePropertyAccessor extends PropertyAccessor, Property
6363
* <p>If {@code true}, a {@code null} path location will be populated
6464
* with a default object value and traversed instead of resulting in a
6565
* {@link NullValueInNestedPathException}.
66-
* <p>Default is {@code false} on a plain PropertyAccessor instance.
66+
* <p>Default is {@code false} on a plain accessor.
67+
* @since 4.1
6768
*/
6869
void setAutoGrowNestedPaths(boolean autoGrowNestedPaths);
6970

7071
/**
7172
* Return whether "auto-growing" of nested paths has been activated.
73+
* @since 4.1
7274
*/
7375
boolean isAutoGrowNestedPaths();
7476

spring-context/src/main/java/org/springframework/validation/DataBinder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,9 @@ public boolean isAutoGrowNestedPaths() {
286286
* Specify the limit for array and collection auto-growing.
287287
* <p>Default is 256, preventing OutOfMemoryErrors in case of large indexes.
288288
* Raise this limit if your auto-growing needs are unusually high.
289-
* <p>Used for setter/field injection via {@link #bind(PropertyValues)}, and not
290-
* applicable to constructor binding via {@link #construct}.
289+
* <p>Used for setter injection via {@link #bind(PropertyValues)};
290+
* not applicable to field injection, and not to constructor binding
291+
* via {@link #construct} either.
291292
* @see #initBeanPropertyAccess()
292293
* @see org.springframework.beans.BeanWrapper#setAutoGrowCollectionLimit
293294
*/

0 commit comments

Comments
 (0)