diff --git a/spring-jms/src/main/java/org/springframework/jms/listener/AbstractMessageListenerContainer.java b/spring-jms/src/main/java/org/springframework/jms/listener/AbstractMessageListenerContainer.java index 5dece40e8a..8af2b21418 100644 --- a/spring-jms/src/main/java/org/springframework/jms/listener/AbstractMessageListenerContainer.java +++ b/spring-jms/src/main/java/org/springframework/jms/listener/AbstractMessageListenerContainer.java @@ -450,10 +450,11 @@ public abstract class AbstractMessageListenerContainer extends AbstractJmsListen /** * Configure the reply destination type. By default, the configured {@code pubSubDomain} * value is used (see {@link #isPubSubDomain()}. - *
This setting primarily indicates what type of destination to resolve - * if dynamic destinations are enabled. - * @param replyPubSubDomain "true" for the Publish/Subscribe domain ({@link javax.jms.Topic Topics}), - * "false" for the Point-to-Point domain ({@link javax.jms.Queue Queues}) + *
This setting primarily indicates what type of destination to resolve if dynamic + * destinations are enabled. + * @param replyPubSubDomain "true" for the Publish/Subscribe domain ({@link Topic Topics}), + * "false" for the Point-to-Point domain ({@link Queue Queues}) + * @since 4.2 * @see #setDestinationResolver */ public void setReplyPubSubDomain(boolean replyPubSubDomain) { @@ -462,8 +463,9 @@ public abstract class AbstractMessageListenerContainer extends AbstractJmsListen /** * Return whether the Publish/Subscribe domain ({@link javax.jms.Topic Topics}) is used - * for replies. Otherwise, the Point-to-Point domain ({@link javax.jms.Queue Queues}) is - * used. + * for replies. Otherwise, the Point-to-Point domain ({@link javax.jms.Queue Queues}) + * is used. + * @since 4.2 */ @Override public boolean isReplyPubSubDomain() { diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserSessionRegistry.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserSessionRegistry.java index fbccc0c3b0..c3fc6f136c 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserSessionRegistry.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserSessionRegistry.java @@ -21,9 +21,9 @@ import java.util.Set; /** * A contract for adding and removing user sessions. * - *
As of 4.2 this interface extends {@link SimpUserRegistry}. - * exposing methods to return all registered users as well as to provide more - * extensive information for each user. + *
As of 4.2, this interface is replaced by {@link SimpUserRegistry}, + * exposing methods to return all registered users as well as to provide + * more extensive information for each user. * * @author Rossen Stoyanchev * @since 4.0 diff --git a/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java b/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java index 062e3d6fb5..1c2fd4a69a 100644 --- a/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java +++ b/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java @@ -23,7 +23,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Set; - import javax.xml.transform.Source; import org.springframework.core.ParameterizedTypeReference; diff --git a/spring-web/src/main/java/org/springframework/web/method/annotation/RequestParamMethodArgumentResolver.java b/spring-web/src/main/java/org/springframework/web/method/annotation/RequestParamMethodArgumentResolver.java index 71e61ede60..f861a776fd 100644 --- a/spring-web/src/main/java/org/springframework/web/method/annotation/RequestParamMethodArgumentResolver.java +++ b/spring-web/src/main/java/org/springframework/web/method/annotation/RequestParamMethodArgumentResolver.java @@ -218,8 +218,11 @@ public class RequestParamMethodArgumentResolver extends AbstractNamedValueMethod } private boolean isMultipartFileCollection(MethodParameter parameter) { - Class> collectionType = getCollectionParameterType(parameter); - return (collectionType != null && MultipartFile.class == collectionType); + return (MultipartFile.class == getCollectionParameterType(parameter)); + } + + private boolean isMultipartFileArray(MethodParameter parameter) { + return (MultipartFile.class == parameter.getParameterType().getComponentType()); } private boolean isPartCollection(MethodParameter parameter) { @@ -232,11 +235,6 @@ public class RequestParamMethodArgumentResolver extends AbstractNamedValueMethod return (paramType != null && "javax.servlet.http.Part".equals(paramType.getName())); } - private boolean isMultipartFileArray(MethodParameter parameter) { - Class> paramType = parameter.getParameterType().getComponentType(); - return (paramType != null && MultipartFile.class == paramType); - } - private Class> getCollectionParameterType(MethodParameter parameter) { Class> paramType = parameter.getParameterType(); if (Collection.class == paramType || List.class.isAssignableFrom(paramType)){ diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java b/spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java index b8ee1d47b7..157ba1de69 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java @@ -135,9 +135,7 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE * Since a STOMP message can be received in multiple WebSocket messages, * buffering may be required and therefore it is necessary to know the maximum * allowed message size. - * *
By default this property is set to 64K. - * * @since 4.0.3 */ public void setMessageSizeLimit(int messageSizeLimit) { @@ -146,14 +144,12 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE /** * Get the configured message buffer size limit in bytes. - * * @since 4.0.3 */ public int getMessageSizeLimit() { return this.messageSizeLimit; } - /** * Provide a registry with which to register active user session ids. * @see org.springframework.messaging.simp.user.UserDestinationMessageHandler @@ -179,7 +175,6 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE * Configure a {@link MessageHeaderInitializer} to apply to the headers of all * messages created from decoded STOMP frames and other messages sent to the * client inbound channel. - * *
By default this property is not set.
*/
public void setHeaderInitializer(MessageHeaderInitializer headerInitializer) {
@@ -188,7 +183,7 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
}
/**
- * @return the configured header initializer.
+ * Return the configured header initializer.
*/
public MessageHeaderInitializer getHeaderInitializer() {
return this.headerInitializer;
@@ -259,7 +254,6 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
try {
StompHeaderAccessor headerAccessor =
MessageHeaderAccessor.getAccessor(message, StompHeaderAccessor.class);
-
Principal user = session.getPrincipal();
headerAccessor.setSessionId(session.getId());
@@ -314,34 +308,37 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
sendErrorMessage(session, ex);
return;
}
+
Message