Deprecate for removal Jackson 2 support

This commit deprecate for removal (likely in a future 7.x release) the
Jackson 2 support in favor of the Jackson 3 one.

Closes gh-33798
This commit is contained in:
Sébastien Deleuze
2025-05-13 16:37:54 +02:00
parent 6ae89ea397
commit 2a29e16456
60 changed files with 141 additions and 7 deletions

View File

@@ -97,6 +97,7 @@ public class SockJsClient implements WebSocketClient, Lifecycle {
* otherwise is defaulted to {@link RestTemplateXhrTransport}.
* @param transports the (non-empty) list of transports to use
*/
@SuppressWarnings("removal")
public SockJsClient(List<Transport> transports) {
Assert.notEmpty(transports, "No transports provided");
this.transports = new ArrayList<>(transports);

View File

@@ -39,7 +39,10 @@ import org.springframework.util.Assert;
*
* @author Rossen Stoyanchev
* @since 4.0
* @deprecated since 7.0 in favor of {@link JacksonJsonSockJsMessageCodec}
*/
@Deprecated(since = "7.0", forRemoval = true)
@SuppressWarnings("removal")
public class Jackson2SockJsMessageCodec extends AbstractSockJsMessageCodec {
private final ObjectMapper objectMapper;

View File

@@ -109,6 +109,7 @@ public class TransportHandlingSockJsService extends AbstractSockJsService implem
* initialized at start-up and shuts down when the application stops
* @param handlers one or more {@link TransportHandler} implementations to use
*/
@SuppressWarnings("removal")
public TransportHandlingSockJsService(TaskScheduler scheduler, Collection<TransportHandler> handlers) {
super(scheduler);