diff --git a/spring-beans/src/main/java/org/springframework/beans/BeanWrapper.java b/spring-beans/src/main/java/org/springframework/beans/BeanWrapper.java
index 08bfa0bc7b..16992e2e16 100644
--- a/spring-beans/src/main/java/org/springframework/beans/BeanWrapper.java
+++ b/spring-beans/src/main/java/org/springframework/beans/BeanWrapper.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -79,11 +79,13 @@ public interface BeanWrapper extends ConfigurablePropertyAccessor {
PropertyDescriptor getPropertyDescriptor(String propertyName) throws InvalidPropertyException;
/**
- * Set whether this BeanWrapper should attempt to "auto-grow" a nested path that contains a null value.
- *
If "true", a null path location will be populated with a default object value and traversed
- * instead of resulting in a {@link NullValueInNestedPathException}. Turning this flag on also
- * enables auto-growth of collection elements when accessing an out-of-bounds index.
- *
Default is "false" on a plain BeanWrapper.
+ * Set whether this BeanWrapper should attempt to "auto-grow" a
+ * nested path that contains a {@code null} value.
+ *
If {@code true}, a {@code null} path location will be populated
+ * with a default object value and traversed instead of resulting in a
+ * {@link NullValueInNestedPathException}. Turning this flag on also enables
+ * auto-growth of collection elements when accessing an out-of-bounds index.
+ *
Default is {@code false} on a plain BeanWrapper.
*/
void setAutoGrowNestedPaths(boolean autoGrowNestedPaths);
diff --git a/spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java b/spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java
index a52df3d978..d59e89a42c 100644
--- a/spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java
+++ b/spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java
@@ -871,8 +871,9 @@ public class BeanWrapperImpl extends AbstractPropertyAccessor implements BeanWra
}
}
- private void growCollectionIfNecessary(Collection