|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2023 the original author or authors. |
|
|
|
* Copyright 2002-2024 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -159,6 +159,7 @@ public class MappingJackson2MessageConverter extends AbstractMessageConverter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("deprecation") // as of Jackson 2.18: can(De)Serialize
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected boolean canConvertFrom(Message<?> message, @Nullable Class<?> targetClass) { |
|
|
|
protected boolean canConvertFrom(Message<?> message, @Nullable Class<?> targetClass) { |
|
|
|
if (targetClass == null || !supportsMimeType(message.getHeaders())) { |
|
|
|
if (targetClass == null || !supportsMimeType(message.getHeaders())) { |
|
|
|
@ -173,6 +174,7 @@ public class MappingJackson2MessageConverter extends AbstractMessageConverter { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("deprecation") // as of Jackson 2.18: can(De)Serialize
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected boolean canConvertTo(Object payload, @Nullable MessageHeaders headers) { |
|
|
|
protected boolean canConvertTo(Object payload, @Nullable MessageHeaders headers) { |
|
|
|
if (!supportsMimeType(headers)) { |
|
|
|
if (!supportsMimeType(headers)) { |
|
|
|
|