diff --git a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/method/annotation/support/ServletModelAttributeMethodProcessor.java b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/method/annotation/support/ServletModelAttributeMethodProcessor.java index ff028065243..b435d5f2ca5 100644 --- a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/method/annotation/support/ServletModelAttributeMethodProcessor.java +++ b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/method/annotation/support/ServletModelAttributeMethodProcessor.java @@ -36,7 +36,7 @@ import org.springframework.web.servlet.mvc.method.annotation.ServletRequestDataB * A Servlet-specific {@link ModelAttributeMethodProcessor} that applies data * binding through a WebDataBinder of type {@link ServletRequestDataBinder}. * - *
Also adds a fall-back strategy to instantiate a model attribute from a + *
Adds a fall-back strategy to instantiate a model attribute from a
* URI template variable combined with type conversion, if the model attribute
* name matches to a URI template variable name.
*
@@ -57,28 +57,20 @@ public class ServletModelAttributeMethodProcessor extends ModelAttributeMethodPr
/**
* Add a fall-back strategy to instantiate the model attribute from a URI
- * template variable and type conversion, assuming the model attribute
- * name matches to a URI variable name. If instantiation fails for _any_
- * reason, the call is delegated to the base class.
+ * template variable with type conversion, if the model attribute name
+ * matches to a URI variable name.
*/
@Override
protected Object createAttribute(String attributeName,
MethodParameter parameter,
WebDataBinderFactory binderFactory,
NativeWebRequest request) throws Exception {
-
+
Map