Generalize Jackson version numbers

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
This commit is contained in:
Arjen Poutsma 2022-11-17 16:52:52 +01:00
parent 62bbebd4f4
commit 792371ac1f
20 changed files with 20 additions and 46 deletions

View File

@ -54,8 +54,6 @@ import org.springframework.util.ClassUtils;
* <li>{@link DeserializationFeature#FAIL_ON_UNKNOWN_PROPERTIES} is disabled</li> * <li>{@link DeserializationFeature#FAIL_ON_UNKNOWN_PROPERTIES} is disabled</li>
* </ul> * </ul>
* *
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Mark Pollack * @author Mark Pollack
* @author Dave Syer * @author Dave Syer
* @author Juergen Hoeller * @author Juergen Hoeller

View File

@ -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"); * 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.
@ -52,8 +52,6 @@ import org.springframework.util.MimeType;
* <li>{@link DeserializationFeature#FAIL_ON_UNKNOWN_PROPERTIES} is disabled</li> * <li>{@link DeserializationFeature#FAIL_ON_UNKNOWN_PROPERTIES} is disabled</li>
* </ul> * </ul>
* *
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Juergen Hoeller * @author Juergen Hoeller
* @author Sebastien Deleuze * @author Sebastien Deleuze

View File

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

View File

@ -59,7 +59,7 @@ import org.springframework.util.CollectionUtils;
import org.springframework.util.MimeType; 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 * cases, {@link Flux} elements are collected into a {@link List} before serialization for
* performance reasons. * performance reasons.
* *

View File

@ -48,7 +48,7 @@ import org.springframework.util.MimeType;
import org.springframework.util.ObjectUtils; 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 Sebastien Deleuze
* @author Rossen Stoyanchev * @author Rossen Stoyanchev

View File

@ -35,7 +35,7 @@ import org.springframework.util.MimeType;
import org.springframework.util.MimeTypeUtils; 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. * leveraging non-blocking parsing.
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze

View File

@ -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"); * 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.
@ -35,7 +35,7 @@ import org.springframework.lang.Nullable;
import org.springframework.util.MimeType; 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} * For non-streaming use cases, {@link Flux} elements are collected into a {@link List}
* before serialization for performance reason. * before serialization for performance reason.
* *

View File

@ -24,7 +24,7 @@ import org.springframework.util.Assert;
import org.springframework.util.MimeType; 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. * leveraging non-blocking parsing.
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze

View File

@ -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"); * 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.
@ -30,7 +30,7 @@ import org.springframework.util.Assert;
import org.springframework.util.MimeType; 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} * For non-streaming use cases, {@link Flux} elements are collected into a {@link List}
* before serialization for performance reason. * before serialization for performance reason.
* *

View File

@ -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"); * 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.
@ -37,8 +37,6 @@ import org.springframework.util.Assert;
* <p>The default constructor uses the default configuration provided by * <p>The default constructor uses the default configuration provided by
* {@link Jackson2ObjectMapperBuilder}. * {@link Jackson2ObjectMapperBuilder}.
* *
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0 * @since 5.0
*/ */

View File

@ -69,8 +69,6 @@ import org.springframework.util.TypeUtils;
* Abstract base class for Jackson based and content type independent * Abstract base class for Jackson based and content type independent
* {@link HttpMessageConverter} implementations. * {@link HttpMessageConverter} implementations.
* *
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Arjen Poutsma * @author Arjen Poutsma
* @author Keith Donald * @author Keith Donald
* @author Rossen Stoyanchev * @author Rossen Stoyanchev

View File

@ -89,8 +89,6 @@ import org.springframework.util.xml.StaxUtils;
* support for Kotlin classes and data classes</li> * support for Kotlin classes and data classes</li>
* </ul> * </ul>
* *
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Juergen Hoeller * @author Juergen Hoeller
* @author Tadaya Tsuyukubo * @author Tadaya Tsuyukubo

View File

@ -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"); * 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.
@ -129,8 +129,6 @@ import org.springframework.lang.Nullable;
* &lt;property name="modulesToInstall" value="myapp.jackson.MySampleModule,myapp.jackson.MyOtherModule"/&gt; * &lt;property name="modulesToInstall" value="myapp.jackson.MySampleModule,myapp.jackson.MyOtherModule"/&gt;
* &lt;/bean&gt;</pre> * &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 <a href="mailto:dmitry.katsubo@gmail.com">Dmitry Katsubo</a>
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
* @author Brian Clozel * @author Brian Clozel
@ -410,7 +408,7 @@ public class Jackson2ObjectMapperFactoryBean implements FactoryBean<ObjectMapper
/** /**
* Set whether to let Jackson find available modules via the JDK ServiceLoader, * 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 * <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 - * 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. * provided that Java 8 and Joda-Time themselves are available, respectively.

View File

@ -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"); * 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.
@ -36,8 +36,6 @@ import org.springframework.lang.Nullable;
* *
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}. * <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 Arjen Poutsma
* @author Keith Donald * @author Keith Donald
* @author Rossen Stoyanchev * @author Rossen Stoyanchev

View File

@ -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"); * 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.
@ -35,8 +35,6 @@ import org.springframework.util.Assert;
* *
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}. * <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 * @author Sebastien Deleuze
* @since 5.0 * @since 5.0
*/ */

View File

@ -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"); * 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.
@ -37,8 +37,6 @@ import org.springframework.util.Assert;
* *
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}. * <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 * @author Sebastien Deleuze
* @since 4.1 * @since 4.1
*/ */

View File

@ -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"); * 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.
@ -40,8 +40,6 @@ import org.springframework.web.servlet.view.AbstractView;
* Abstract base class for Jackson based and content type independent * Abstract base class for Jackson based and content type independent
* {@link AbstractView} implementations. * {@link AbstractView} implementations.
* *
* <p>Compatible with Jackson 2.9 to 2.12, as of Spring 5.3.
*
* @author Jeremy Grelle * @author Jeremy Grelle
* @author Arjen Poutsma * @author Arjen Poutsma
* @author Rossen Stoyanchev * @author Rossen Stoyanchev

View File

@ -42,8 +42,6 @@ import org.springframework.web.servlet.View;
* *
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}. * <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 Jeremy Grelle
* @author Arjen Poutsma * @author Arjen Poutsma
* @author Rossen Stoyanchev * @author Rossen Stoyanchev

View File

@ -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"); * 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.
@ -38,8 +38,6 @@ import org.springframework.web.servlet.view.json.AbstractJackson2View;
* *
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}. * <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 * @author Sebastien Deleuze
* @since 4.1 * @since 4.1
* @see org.springframework.web.servlet.view.json.MappingJackson2JsonView * @see org.springframework.web.servlet.view.json.MappingJackson2JsonView

View File

@ -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"); * 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.
@ -29,7 +29,7 @@ import org.springframework.lang.Nullable;
import org.springframework.util.Assert; 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: * <p>It customizes Jackson's default properties with the following ones:
* <ul> * <ul>