8000 Deprecate for removal Jackson 2 support · spring-projects/spring-framework@2a29e16 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a29e16

Browse files
committed
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
1 parent 6ae89ea commit 2a29e16

File tree

60 files changed

+141
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+141
-7
lines changed

framework-docs/src/main/java/org/springframework/docs/testing/mockmvc/assertj/mockmvctestersetup/converter/AccountControllerIntegrationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.springframework.test.web.servlet.assertj.MockMvcTester;
2626
import org.springframework.web.context.WebApplicationContext;
2727

28+
@SuppressWarnings("removal")
2829
// tag::snippet[]
2930
@SpringJUnitWebConfig(ApplicationWebConfiguration.class)
3031
class AccountControllerIntegrationTests {

framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvcconfig/mvcconfigmessageconverters/WebConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter;
2929
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
3030

31+
@SuppressWarnings("removal")
3132
// tag::snippet[]
3233
@Configuration
3334
public class WebConfiguration implements WebMvcConfigurer {

framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvcconfig/mvcconfigviewresolvers/FreeMarkerConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;
2424
import org.springframework.web.servlet.view.json.MappingJackson2JsonView;
2525

26+
@SuppressWarnings("removal")
2627
// tag::snippet[]
2728
@Configuration
2829
public class FreeMarkerConfiguration implements WebMvcConfigurer {

framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvcconfig/mvcconfigviewresolvers/WebConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
2222
import org.springframework.web.servlet.view.json.MappingJackson2JsonView;
2323

24+
@SuppressWarnings("removal")
2425
// tag::snippet[]
2526
@Configuration
2627
public class WebConfiguration implements WebMvcConfigurer {

framework-docs/src/main/kotlin/org/springframework/docs/testing/mockmvc/assertj/mockmvctestersetup/converter/AccountControllerIntegrationTests.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
@file:Suppress("DEPRECATION")
18+
1719
package org.springframework.docs.testing.mockmvc.assertj.mockmvctestersetup.converter
1820

1921
import org.springframework.beans.factory.annotation.Autowired

framework-docs/src/main/kotlin/org/springframework/docs/web/webmvc/mvcconfig/mvcconfigmessageconverters/WebConfiguration.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("DEPRECATION")
2+
13
package org.springframework.docs.web.webmvc.mvcconfig.mvcconfigmessageconverters
24

35
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule

framework-docs/src/main/kotlin/org/springframework/docs/web/webmvc/mvcconfig/mvcconfigviewresolvers/FreeMarkerConfiguration.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("DEPRECATION")
2+
13
package org.springframework.docs.web.webmvc.mvcconfig.mvcconfigviewresolvers
24

35
import org.springframework.context.annotation.Bean

framework-docs/src/main/kotlin/org/springframework/docs/web/webmvc/mvcconfig/mvcconfigviewresolvers/WebConfiguration.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
@file:Suppress("DEPRECATION")
18+
1719
package org.springframework.docs.web.webmvc.mvcconfig.mvcconfigviewresolvers
1820

1921
import org.springframework.context.annotation.Configuration

spring-jms/src/main/java/org/springframework/jms/support/converter/MappingJackson2MessageConverter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
* @author Juergen Hoeller
6161
* @author Stephane Nicoll
6262
* @since 3.1.4
63+
* @deprecated since 7.0 in favor of {@link JacksonJsonMessageConverter}
6364
*/
65+
@Deprecated(since = "7.0", forRemoval = true)
6466
public class MappingJackson2MessageConverter implements SmartMessageConverter, BeanClassLoaderAware {
6567

6668
/**

spring-messaging/src/main/java/org/springframework/messaging/converter/MappingJackson2MessageConverter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@
5656
* @author Juergen Hoeller
5757
* @author Sebastien Deleuze
5858
* @since 4.0
59+
* @deprecated since 7.0 in favor of {@link JacksonJsonMessageConverter}
5960
*/
61+
@Deprecated(since = "7.0", forRemoval = true)
6062
public class MappingJackson2MessageConverter extends AbstractMessageConverter {
6163

6264
private static final MimeType[] DEFAULT_MIME_TYPES = new MimeType[] {

0 commit comments

Comments
 (0)
0