Upgrade to Jackson 2.18

Closes gh-33615
This commit is contained in:
Juergen Hoeller
2024-09-30 13:53:22 +02:00
parent 38c9af2385
commit 30dc86810e
7 changed files with 10 additions and 4 deletions

View File

@@ -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");
* 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
protected boolean canConvertFrom(Message<?> message, @Nullable Class<?> targetClass) {
if (targetClass == null || !supportsMimeType(message.getHeaders())) {
@@ -173,6 +174,7 @@ public class MappingJackson2MessageConverter extends AbstractMessageConverter {
return false;
}
@SuppressWarnings("deprecation") // as of Jackson 2.18: can(De)Serialize
@Override
protected boolean canConvertTo(Object payload, @Nullable MessageHeaders headers) {
if (!supportsMimeType(headers)) {