|
|
|
@ -17,7 +17,6 @@ |
|
|
|
package org.springframework.messaging.handler.annotation.reactive; |
|
|
|
package org.springframework.messaging.handler.annotation.reactive; |
|
|
|
|
|
|
|
|
|
|
|
import java.lang.annotation.Annotation; |
|
|
|
import java.lang.annotation.Annotation; |
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
@ -93,7 +92,7 @@ public class PayloadMethodArgumentResolver implements HandlerMethodArgumentResol |
|
|
|
@Nullable ReactiveAdapterRegistry registry, boolean useDefaultResolution) { |
|
|
|
@Nullable ReactiveAdapterRegistry registry, boolean useDefaultResolution) { |
|
|
|
|
|
|
|
|
|
|
|
Assert.isTrue(!CollectionUtils.isEmpty(decoders), "At least one Decoder is required"); |
|
|
|
Assert.isTrue(!CollectionUtils.isEmpty(decoders), "At least one Decoder is required"); |
|
|
|
this.decoders = Collections.unmodifiableList(new ArrayList<>(decoders)); |
|
|
|
this.decoders = List.copyOf(decoders); |
|
|
|
this.validator = validator; |
|
|
|
this.validator = validator; |
|
|
|
this.adapterRegistry = registry != null ? registry : ReactiveAdapterRegistry.getSharedInstance(); |
|
|
|
this.adapterRegistry = registry != null ? registry : ReactiveAdapterRegistry.getSharedInstance(); |
|
|
|
this.useDefaultResolution = useDefaultResolution; |
|
|
|
this.useDefaultResolution = useDefaultResolution; |
|
|
|
|