Remove mentions of Joda-Time support
Since Joda-Time support was removed in Spring Framework 6.0, this commit removes obsolete mentions of Joda-Time in the reference guide and Javadoc. See gh-27426 Closes gh-33881
This commit is contained in:
@@ -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.
|
||||
@@ -214,7 +214,7 @@ public class Jackson2ObjectMapperBuilder {
|
||||
|
||||
/**
|
||||
* Override the default {@link Locale} to use for formatting.
|
||||
* Default value used is {@link Locale#getDefault()}.
|
||||
* <p>Default value used is {@link Locale#getDefault()}.
|
||||
* @since 4.1.5
|
||||
*/
|
||||
public Jackson2ObjectMapperBuilder locale(Locale locale) {
|
||||
@@ -224,7 +224,7 @@ public class Jackson2ObjectMapperBuilder {
|
||||
|
||||
/**
|
||||
* Override the default {@link Locale} to use for formatting.
|
||||
* Default value used is {@link Locale#getDefault()}.
|
||||
* <p>Default value used is {@link Locale#getDefault()}.
|
||||
* @param localeString the locale ID as a String representation
|
||||
* @since 4.1.5
|
||||
*/
|
||||
@@ -235,7 +235,7 @@ public class Jackson2ObjectMapperBuilder {
|
||||
|
||||
/**
|
||||
* Override the default {@link TimeZone} to use for formatting.
|
||||
* Default value used is UTC (NOT local timezone).
|
||||
* <p>Default value used is UTC (NOT local timezone).
|
||||
* @since 4.1.5
|
||||
*/
|
||||
public Jackson2ObjectMapperBuilder timeZone(TimeZone timeZone) {
|
||||
@@ -245,7 +245,7 @@ public class Jackson2ObjectMapperBuilder {
|
||||
|
||||
/**
|
||||
* Override the default {@link TimeZone} to use for formatting.
|
||||
* Default value used is UTC (NOT local timezone).
|
||||
* <p>Default value used is UTC (NOT local timezone).
|
||||
* @param timeZoneString the zone ID as a String representation
|
||||
* @since 4.1.5
|
||||
*/
|
||||
@@ -265,7 +265,7 @@ public class Jackson2ObjectMapperBuilder {
|
||||
/**
|
||||
* Alternative to {@link #annotationIntrospector(AnnotationIntrospector)}
|
||||
* that allows combining with rather than replacing the currently set
|
||||
* introspector, e.g. via
|
||||
* introspector — for example, via
|
||||
* {@link AnnotationIntrospectorPair#pair(AnnotationIntrospector, AnnotationIntrospector)}.
|
||||
* @param pairingFunction a function to apply to the currently set
|
||||
* introspector (possibly {@code null}); the result of the function becomes
|
||||
@@ -525,10 +525,10 @@ public class Jackson2ObjectMapperBuilder {
|
||||
|
||||
/**
|
||||
* Specify the modules to be registered with the {@link ObjectMapper}.
|
||||
* <p>Multiple invocations are not additive, the last one defines the modules to
|
||||
* <p>Multiple invocations are not additive; the last one defines the modules to
|
||||
* register.
|
||||
* <p>Note: If this is set, no finding of modules is going to happen - not by
|
||||
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
|
||||
* <p>Note: If this is set, autodetection of modules will not occur — not
|
||||
* by Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
|
||||
* As a consequence, specifying an empty list here will suppress any kind of
|
||||
* module detection.
|
||||
* <p>Specify either this or {@link #modulesToInstall}, not both.
|
||||
@@ -571,11 +571,10 @@ public class Jackson2ObjectMapperBuilder {
|
||||
|
||||
/**
|
||||
* Specify one or more modules to be registered with the {@link ObjectMapper}.
|
||||
* <p>Multiple invocations are not additive, the last one defines the modules
|
||||
* <p>Multiple invocations are not additive; the last one defines the modules
|
||||
* to register.
|
||||
* <p>Modules specified here will be registered after
|
||||
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
|
||||
* finding of modules (see {@link #findModulesViaServiceLoader}),
|
||||
* <p>Modules specified here will be registered after Spring's autodetection of
|
||||
* JSR-310, or Jackson's finding of modules (see {@link #findModulesViaServiceLoader}),
|
||||
* allowing to eventually override their configuration.
|
||||
* <p>Specify either this or {@link #modules(Module...)}, not both.
|
||||
* @since 4.1.5
|
||||
@@ -605,13 +604,11 @@ public class Jackson2ObjectMapperBuilder {
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify one or more modules by class to be registered with
|
||||
* the {@link ObjectMapper}.
|
||||
* <p>Multiple invocations are not additive, the last one defines the modules
|
||||
* Specify one or more modules by class to be registered with the {@link ObjectMapper}.
|
||||
* <p>Multiple invocations are not additive; the last one defines the modules
|
||||
* to register.
|
||||
* <p>Modules specified here will be registered after
|
||||
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
|
||||
* finding of modules (see {@link #findModulesViaServiceLoader}),
|
||||
* <p>Modules specified here will be registered after Spring's autodetection of
|
||||
* JSR-310, or Jackson's finding of modules (see {@link #findModulesViaServiceLoader}),
|
||||
* allowing to eventually override their configuration.
|
||||
* <p>Specify either this or {@link #modules(Module...)}, not both.
|
||||
* @see #modulesToInstall(Module...)
|
||||
@@ -630,8 +627,7 @@ public class Jackson2ObjectMapperBuilder {
|
||||
* Set whether to let Jackson find available modules via the JDK ServiceLoader,
|
||||
* based on META-INF metadata in the classpath.
|
||||
* <p>If this mode is not set, Spring's Jackson2ObjectMapperBuilder 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.
|
||||
* will try to find the JSR-310 support module on the classpath.
|
||||
* @see com.fasterxml.jackson.databind.ObjectMapper#findModules()
|
||||
*/
|
||||
public Jackson2ObjectMapperBuilder findModulesViaServiceLoader(boolean findModules) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 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.
|
||||
@@ -391,11 +391,10 @@ public class Jackson2ObjectMapperFactoryBean implements FactoryBean<ObjectMapper
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify one or more modules by class (or class name in XML)
|
||||
* to be registered with the {@link ObjectMapper}.
|
||||
* <p>Modules specified here will be registered after
|
||||
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
|
||||
* finding of modules (see {@link #setFindModulesViaServiceLoader}),
|
||||
* Specify one or more modules by class (or class name in XML) to be registered
|
||||
* with the {@link ObjectMapper}.
|
||||
* <p>Modules specified here will be registered after Spring's autodetection of
|
||||
* JSR-310, or Jackson's finding of modules (see {@link #setFindModulesViaServiceLoader}),
|
||||
* allowing to eventually override their configuration.
|
||||
* <p>Specify either this or {@link #setModules}, not both.
|
||||
* @since 4.0.1
|
||||
@@ -410,8 +409,7 @@ public class Jackson2ObjectMapperFactoryBean implements FactoryBean<ObjectMapper
|
||||
* Set whether to let Jackson find available modules via the JDK ServiceLoader,
|
||||
* 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.
|
||||
* will try to find the JSR-310 support module on the classpath.
|
||||
* @since 4.0.1
|
||||
* @see com.fasterxml.jackson.databind.ObjectMapper#findModules()
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user