Skip to content

Commit

Permalink
Generalize Jackson version numbers
Browse files Browse the repository at this point in the history
This commit removes specific version info from Jackson codecs and
converters, in favor of generic info or removing the version information
all together.

See gh-29508
  • Loading branch information
poutsma committed Nov 17, 2022
1 parent 62bbebd commit 792371a
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 46 deletions.
Expand Up @@ -54,8 +54,6 @@
* <li>{@link DeserializationFeature#FAIL_ON_UNKNOWN_PROPERTIES} is disabled</li>
* </ul>
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Mark Pollack
* @author Dave Syer
* @author Juergen Hoeller
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -52,8 +52,6 @@
* <li>{@link DeserializationFeature#FAIL_ON_UNKNOWN_PROPERTIES} is disabled</li>
* </ul>
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Rossen Stoyanchev
* @author Juergen Hoeller
* @author Sebastien Deleuze
Expand Down
Expand Up @@ -52,9 +52,7 @@
import org.springframework.util.MimeType;

/**
* Abstract base class for Jackson 2.14 decoding, leveraging non-blocking parsing.
*
* <p>Compatible with Jackson 2.14, as of Spring 6.0.
* Abstract base class for Jackson 2.x decoding, leveraging non-blocking parsing.
*
* @author Sebastien Deleuze
* @author Rossen Stoyanchev
Expand Down
Expand Up @@ -59,7 +59,7 @@
import org.springframework.util.MimeType;

/**
* Base class providing support methods for Jackson 2.9 encoding. For non-streaming use
* Base class providing support methods for Jackson 2.x encoding. For non-streaming use
* cases, {@link Flux} elements are collected into a {@link List} before serialization for
* performance reasons.
*
Expand Down
Expand Up @@ -48,7 +48,7 @@
import org.springframework.util.ObjectUtils;

/**
* Base class providing support methods for Jackson 2.9 encoding and decoding.
* Base class providing support methods for Jackson 2.x encoding and decoding.
*
* @author Sebastien Deleuze
* @author Rossen Stoyanchev
Expand Down
Expand Up @@ -35,7 +35,7 @@
import org.springframework.util.MimeTypeUtils;

/**
* Decode a byte stream into JSON and convert to Object's with Jackson 2.14,
* Decode a byte stream into JSON and convert to Object's with Jackson 2.x,
* leveraging non-blocking parsing.
*
* @author Sebastien Deleuze
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -35,7 +35,7 @@
import org.springframework.util.MimeType;

/**
* Encode from an {@code Object} stream to a byte stream of JSON objects using Jackson 2.9.
* Encode from an {@code Object} stream to a byte stream of JSON objects using Jackson 2.x.
* For non-streaming use cases, {@link Flux} elements are collected into a {@link List}
* before serialization for performance reason.
*
Expand Down
Expand Up @@ -24,7 +24,7 @@
import org.springframework.util.MimeType;

/**
* Decode a byte stream into Smile and convert to Object's with Jackson 2.14,
* Decode a byte stream into Smile and convert to Object's with Jackson 2.x,
* leveraging non-blocking parsing.
*
* @author Sebastien Deleuze
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -30,7 +30,7 @@
import org.springframework.util.MimeType;

/**
* Encode from an {@code Object} stream to a byte stream of Smile objects using Jackson 2.9.
* Encode from an {@code Object} stream to a byte stream of Smile objects using Jackson 2.x.
* For non-streaming use cases, {@link Flux} elements are collected into a {@link List}
* before serialization for performance reason.
*
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -37,8 +37,6 @@
* <p>The default constructor uses the default configuration provided by
* {@link Jackson2ObjectMapperBuilder}.
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Sebastien Deleuze
* @since 5.0
*/
Expand Down
Expand Up @@ -69,8 +69,6 @@
* Abstract base class for Jackson based and content type independent
* {@link HttpMessageConverter} implementations.
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Arjen Poutsma
* @author Keith Donald
* @author Rossen Stoyanchev
Expand Down
Expand Up @@ -89,8 +89,6 @@
* support for Kotlin classes and data classes</li>
* </ul>
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Sebastien Deleuze
* @author Juergen Hoeller
* @author Tadaya Tsuyukubo
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -129,8 +129,6 @@
* &lt;property name="modulesToInstall" value="myapp.jackson.MySampleModule,myapp.jackson.MyOtherModule"/&gt;
* &lt;/bean&gt;</pre>
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author <a href="mailto:dmitry.katsubo@gmail.com">Dmitry Katsubo</a>
* @author Rossen Stoyanchev
* @author Brian Clozel
Expand Down Expand Up @@ -410,7 +408,7 @@ public final void setModulesToInstall(Class<? extends Module>... modules) {

/**
* Set whether to let Jackson find available modules via the JDK ServiceLoader,
* based on META-INF metadata in the classpath. Requires Jackson 2.2 or higher.
* based on META-INF metadata in the classpath.
* <p>If this mode is not set, Spring's Jackson2ObjectMapperFactoryBean itself
* will try to find the JSR-310 and Joda-Time support modules on the classpath -
* provided that Java 8 and Joda-Time themselves are available, respectively.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -36,8 +36,6 @@
*
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}.
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Arjen Poutsma
* @author Keith Donald
* @author Rossen Stoyanchev
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -35,8 +35,6 @@
*
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}.
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Sebastien Deleuze
* @since 5.0
*/
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -37,8 +37,6 @@
*
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}.
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Sebastien Deleuze
* @since 4.1
*/
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -40,8 +40,6 @@
* Abstract base class for Jackson based and content type independent
* {@link AbstractView} implementations.
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Jeremy Grelle
* @author Arjen Poutsma
* @author Rossen Stoyanchev
Expand Down
Expand Up @@ -42,8 +42,6 @@
*
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}.
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Jeremy Grelle
* @author Arjen Poutsma
* @author Rossen Stoyanchev
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -38,8 +38,6 @@
*
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}.
*
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Sebastien Deleuze
* @since 4.1
* @see org.springframework.web.servlet.view.json.MappingJackson2JsonView
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2022 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.
Expand Down Expand Up @@ -29,7 +29,7 @@
import org.springframework.util.Assert;

/**
* A Jackson 2.6+ codec for encoding and decoding SockJS messages.
* A Jackson 2.x codec for encoding and decoding SockJS messages.
*
* <p>It customizes Jackson's default properties with the following ones:
* <ul>
Expand Down

0 comments on commit 792371a

Please sign in to comment.