diff --git a/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/MessageMethodArgumentResolver.java b/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/MessageMethodArgumentResolver.java index 2868ac3cc8..03b9ba0681 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/MessageMethodArgumentResolver.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/MessageMethodArgumentResolver.java @@ -32,7 +32,9 @@ import org.springframework.util.StringUtils; /** * {@code HandlerMethodArgumentResolver} for {@link Message} method arguments. - * Validates that the generic type of the payload matches to the message value. + * Validates that the generic type of the payload matches to the message value + * or otherwise applies {@link MessageConverter} to convert to the expected + * payload type. * * @author Rossen Stoyanchev * @author Stephane Nicoll @@ -46,6 +48,7 @@ public class MessageMethodArgumentResolver implements HandlerMethodArgumentResol /** * Create a new instance with the given {@link MessageConverter}. * @param converter the MessageConverter to use (required) + * @since 4.1 */ public MessageMethodArgumentResolver(MessageConverter converter) { Assert.notNull(converter, "MessageConverter must not be null");