Apply "instanceof pattern matching" in spring-messaging
This commit also applies additional clean-up tasks such as the following.
- final fields
- diamond operator (<>) for anonymous inner classes
- for-each loop
This has only been applied to `src/main/java`.
@ -314,8 +314,7 @@ public abstract class AbstractMessageConverter implements SmartMessageConverter
@@ -314,8 +314,7 @@ public abstract class AbstractMessageConverter implements SmartMessageConverter
@ -285,8 +285,7 @@ public class MappingJackson2MessageConverter extends AbstractMessageConverter {
@@ -285,8 +285,7 @@ public class MappingJackson2MessageConverter extends AbstractMessageConverter {
@ -131,10 +131,9 @@ public class CompositeMessageCondition implements MessageCondition<CompositeMess
@@ -131,10 +131,9 @@ public class CompositeMessageCondition implements MessageCondition<CompositeMess
@ -134,8 +134,7 @@ public class MessageMethodArgumentResolver implements HandlerMethodArgumentResol
@@ -134,8 +134,7 @@ public class MessageMethodArgumentResolver implements HandlerMethodArgumentResol
@ -133,8 +133,7 @@ public class PayloadMethodArgumentResolver implements HandlerMethodArgumentResol
@@ -133,8 +133,7 @@ public class PayloadMethodArgumentResolver implements HandlerMethodArgumentResol
@ -104,8 +104,7 @@ public class HandlerMethodReturnValueHandlerComposite implements AsyncHandlerMet
@@ -104,8 +104,7 @@ public class HandlerMethodReturnValueHandlerComposite implements AsyncHandlerMet
@ -95,8 +95,7 @@ public class HandlerMethodReturnValueHandlerComposite implements HandlerMethodRe
@@ -95,8 +95,7 @@ public class HandlerMethodReturnValueHandlerComposite implements HandlerMethodRe
@ -54,7 +54,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
@@ -54,7 +54,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
@ -206,8 +206,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
@@ -206,8 +206,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
@ -90,9 +90,9 @@ final class DefaultRSocketRequesterBuilder implements RSocketRequester.Builder {
@@ -90,9 +90,9 @@ final class DefaultRSocketRequesterBuilder implements RSocketRequester.Builder {
@ -68,7 +68,7 @@ public class SendToMethodReturnValueHandler implements HandlerMethodReturnValueH
@@ -68,7 +68,7 @@ public class SendToMethodReturnValueHandler implements HandlerMethodReturnValueH
@ -244,7 +244,7 @@ public class SendToMethodReturnValueHandler implements HandlerMethodReturnValueH
@@ -244,7 +244,7 @@ public class SendToMethodReturnValueHandler implements HandlerMethodReturnValueH
@ -141,7 +141,7 @@ public class SubscriptionMethodReturnValueHandler implements HandlerMethodReturn
@@ -141,7 +141,7 @@ public class SubscriptionMethodReturnValueHandler implements HandlerMethodReturn
@ -162,7 +163,7 @@ public class DefaultSubscriptionRegistry extends AbstractSubscriptionRegistry {
@@ -162,7 +163,7 @@ public class DefaultSubscriptionRegistry extends AbstractSubscriptionRegistry {
@ -509,8 +510,7 @@ public class DefaultSubscriptionRegistry extends AbstractSubscriptionRegistry {
@@ -509,8 +510,7 @@ public class DefaultSubscriptionRegistry extends AbstractSubscriptionRegistry {
@ -154,8 +154,7 @@ public class OrderedMessageChannelDecorator implements MessageChannel {
@@ -154,8 +154,7 @@ public class OrderedMessageChannelDecorator implements MessageChannel {
@ -657,6 +657,7 @@ public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler
@@ -657,6 +657,7 @@ public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler
}
@Override
publicStringgetSessionId(){
returnthis.sessionId;
}
@ -984,6 +985,7 @@ public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler
@@ -984,6 +985,7 @@ public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler
@ -275,7 +275,7 @@ public class MultiServerUserRegistry implements SimpUserRegistry, SmartApplicati
@@ -275,7 +275,7 @@ public class MultiServerUserRegistry implements SimpUserRegistry, SmartApplicati
privateStringname="";
// User sessions from "this" registry only (i.e. one server)
privateSet<TransferSimpSession>sessions;
privatefinalSet<TransferSimpSession>sessions;
// Cross-server session lookup (e.g. user connected to multiple servers)
@Nullable
@ -535,10 +535,9 @@ public class MultiServerUserRegistry implements SimpUserRegistry, SmartApplicati
@@ -535,10 +535,9 @@ public class MultiServerUserRegistry implements SimpUserRegistry, SmartApplicati
@ -258,7 +260,7 @@ public class UserDestinationMessageHandler implements MessageHandler, SmartLifec
@@ -258,7 +260,7 @@ public class UserDestinationMessageHandler implements MessageHandler, SmartLifec
@ -284,7 +286,7 @@ public class UserDestinationMessageHandler implements MessageHandler, SmartLifec
@@ -284,7 +286,7 @@ public class UserDestinationMessageHandler implements MessageHandler, SmartLifec