Browse Source

Polishing contribution

Closes gh-34942
pull/34989/head
rstoyanchev 7 months ago
parent
commit
230540b6da
  1. 3
      spring-beans/src/main/java/org/springframework/beans/BeanUtils.java
  2. 6
      spring-beans/src/main/java/org/springframework/beans/factory/config/AutowireCapableBeanFactory.java
  3. 4
      spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java
  4. 4
      spring-beans/src/main/java/org/springframework/beans/factory/support/PropertiesBeanDefinitionReader.java
  5. 2
      spring-context/src/main/java/org/springframework/context/support/AbstractResourceBasedMessageSource.java
  6. 3
      spring-context/src/main/java/org/springframework/scheduling/concurrent/ThreadPoolTaskScheduler.java
  7. 2
      spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java
  8. 8
      spring-core/src/main/java/org/springframework/core/MethodParameter.java
  9. 5
      spring-core/src/main/java/org/springframework/core/annotation/AnnotationFilter.java
  10. 20
      spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
  11. 2
      spring-core/src/main/java/org/springframework/core/codec/AbstractDataBufferDecoder.java
  12. 3
      spring-core/src/main/java/org/springframework/core/env/Environment.java
  13. 6
      spring-core/src/main/java/org/springframework/core/task/AsyncTaskExecutor.java
  14. 2
      spring-core/src/main/java/org/springframework/core/task/TaskTimeoutException.java
  15. 4
      spring-core/src/main/java/org/springframework/core/type/StandardAnnotationMetadata.java
  16. 2
      spring-core/src/main/java/org/springframework/core/type/StandardClassMetadata.java
  17. 2
      spring-core/src/main/java/org/springframework/core/type/StandardMethodMetadata.java
  18. 2
      spring-core/src/main/java/org/springframework/lang/NonNull.java
  19. 2
      spring-core/src/main/java/org/springframework/lang/NonNullApi.java
  20. 2
      spring-core/src/main/java/org/springframework/lang/NonNullFields.java
  21. 2
      spring-core/src/main/java/org/springframework/lang/Nullable.java
  22. 6
      spring-core/src/main/java/org/springframework/util/ClassUtils.java
  23. 4
      spring-core/src/main/java/org/springframework/util/StringUtils.java
  24. 12
      spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java
  25. 4
      spring-jdbc/src/main/java/org/springframework/jdbc/core/support/JdbcBeanDefinitionReader.java
  26. 3
      spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DataSourceUtils.java
  27. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/support/DatabaseStartupValidator.java
  28. 2
      spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.java
  29. 6
      spring-messaging/src/main/java/org/springframework/messaging/rsocket/RSocketRequester.java
  30. 2
      spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java
  31. 4
      spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionInterceptor.java
  32. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerMapping.java
  33. 6
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/WebContentInterceptor.java
  34. 9
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java

3
spring-beans/src/main/java/org/springframework/beans/BeanUtils.java

@ -95,8 +95,7 @@ public abstract class BeanUtils {
* @return the new instance * @return the new instance
* @throws BeanInstantiationException if the bean cannot be instantiated * @throws BeanInstantiationException if the bean cannot be instantiated
* @see Class#newInstance() * @see Class#newInstance()
* @deprecated as of Spring 5.0, following the deprecation of * @deprecated following the deprecation of {@link Class#newInstance()} in JDK 9
* {@link Class#newInstance()} in JDK 9
*/ */
@Deprecated(since = "5.0") @Deprecated(since = "5.0")
public static <T> T instantiate(Class<T> clazz) throws BeanInstantiationException { public static <T> T instantiate(Class<T> clazz) throws BeanInstantiationException {

6
spring-beans/src/main/java/org/springframework/beans/factory/config/AutowireCapableBeanFactory.java

@ -97,8 +97,8 @@ public interface AutowireCapableBeanFactory extends BeanFactory {
* Constant that indicates determining an appropriate autowire strategy * Constant that indicates determining an appropriate autowire strategy
* through introspection of the bean class. * through introspection of the bean class.
* @see #autowire * @see #autowire
* @deprecated as of Spring 3.0: If you are using mixed autowiring strategies, * @deprecated If you are using mixed autowiring strategies, prefer
* prefer annotation-based autowiring for clearer demarcation of autowiring needs. * annotation-based autowiring for clearer demarcation of autowiring needs.
*/ */
@Deprecated(since = "3.0") @Deprecated(since = "3.0")
int AUTOWIRE_AUTODETECT = 4; int AUTOWIRE_AUTODETECT = 4;
@ -188,7 +188,7 @@ public interface AutowireCapableBeanFactory extends BeanFactory {
* @see #AUTOWIRE_BY_NAME * @see #AUTOWIRE_BY_NAME
* @see #AUTOWIRE_BY_TYPE * @see #AUTOWIRE_BY_TYPE
* @see #AUTOWIRE_CONSTRUCTOR * @see #AUTOWIRE_CONSTRUCTOR
* @deprecated as of 6.1, in favor of {@link #createBean(Class)} * @deprecated in favor of {@link #createBean(Class)}
*/ */
@Deprecated(since = "6.1") @Deprecated(since = "6.1")
Object createBean(Class<?> beanClass, int autowireMode, boolean dependencyCheck) throws BeansException; Object createBean(Class<?> beanClass, int autowireMode, boolean dependencyCheck) throws BeansException;

4
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java

@ -95,8 +95,8 @@ public abstract class AbstractBeanDefinition extends BeanMetadataAttributeAccess
* Constant that indicates determining an appropriate autowire strategy * Constant that indicates determining an appropriate autowire strategy
* through introspection of the bean class. * through introspection of the bean class.
* @see #setAutowireMode * @see #setAutowireMode
* @deprecated as of Spring 3.0: If you are using mixed autowiring strategies, * @deprecated If you are using mixed autowiring strategies, use
* use annotation-based autowiring for clearer demarcation of autowiring needs. * annotation-based autowiring for clearer demarcation of autowiring needs.
*/ */
@Deprecated(since = "3.0") @Deprecated(since = "3.0")
public static final int AUTOWIRE_AUTODETECT = AutowireCapableBeanFactory.AUTOWIRE_AUTODETECT; public static final int AUTOWIRE_AUTODETECT = AutowireCapableBeanFactory.AUTOWIRE_AUTODETECT;

4
spring-beans/src/main/java/org/springframework/beans/factory/support/PropertiesBeanDefinitionReader.java

@ -75,8 +75,8 @@ import org.springframework.util.StringUtils;
* @author Rob Harrop * @author Rob Harrop
* @since 26.11.2003 * @since 26.11.2003
* @see DefaultListableBeanFactory * @see DefaultListableBeanFactory
* @deprecated as of 5.3, in favor of Spring's common bean definition formats * @deprecated in favor of Spring's common bean definition formats and/or
* and/or custom reader implementations * custom reader implementations
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader { public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader {

2
spring-context/src/main/java/org/springframework/context/support/AbstractResourceBasedMessageSource.java

@ -156,7 +156,7 @@ public abstract class AbstractResourceBasedMessageSource extends AbstractMessage
* Return whether to fall back to the system Locale if no files for a specific * Return whether to fall back to the system Locale if no files for a specific
* Locale have been found. * Locale have been found.
* @since 4.3 * @since 4.3
* @deprecated as of 5.2.2, in favor of {@link #getDefaultLocale()} * @deprecated in favor of {@link #getDefaultLocale()}
*/ */
@Deprecated(since = "5.2.2") @Deprecated(since = "5.2.2")
protected boolean isFallbackToSystemLocale() { protected boolean isFallbackToSystemLocale() {

3
spring-context/src/main/java/org/springframework/scheduling/concurrent/ThreadPoolTaskScheduler.java

@ -299,8 +299,7 @@ public class ThreadPoolTaskScheduler extends ExecutorConfigurationSupport
/** /**
* Return the current setting for the remove-on-cancel mode. * Return the current setting for the remove-on-cancel mode.
* <p>Requires an underlying {@link ScheduledThreadPoolExecutor}. * <p>Requires an underlying {@link ScheduledThreadPoolExecutor}.
* @deprecated as of 5.3.9, in favor of direct * @deprecated in favor of direct {@link #getScheduledThreadPoolExecutor()} access
* {@link #getScheduledThreadPoolExecutor()} access
*/ */
@Deprecated(since = "5.3.9") @Deprecated(since = "5.3.9")
public boolean isRemoveOnCancelPolicy() { public boolean isRemoveOnCancelPolicy() {

2
spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java

@ -59,7 +59,7 @@ public final class GenericTypeResolver {
* @param methodParameter the method parameter specification * @param methodParameter the method parameter specification
* @param implementationClass the class to resolve type variables against * @param implementationClass the class to resolve type variables against
* @return the corresponding generic parameter or return type * @return the corresponding generic parameter or return type
* @deprecated since 5.2 in favor of {@code methodParameter.withContainingClass(implementationClass).getParameterType()} * @deprecated in favor of {@code methodParameter.withContainingClass(implementationClass).getParameterType()}
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static Class<?> resolveParameterType(MethodParameter methodParameter, Class<?> implementationClass) { public static Class<?> resolveParameterType(MethodParameter methodParameter, Class<?> implementationClass) {

8
spring-core/src/main/java/org/springframework/core/MethodParameter.java

@ -264,7 +264,7 @@ public class MethodParameter {
/** /**
* Increase this parameter's nesting level. * Increase this parameter's nesting level.
* @see #getNestingLevel() * @see #getNestingLevel()
* @deprecated since 5.2 in favor of {@link #nested(Integer)} * @deprecated in favor of {@link #nested(Integer)}
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public void increaseNestingLevel() { public void increaseNestingLevel() {
@ -274,7 +274,7 @@ public class MethodParameter {
/** /**
* Decrease this parameter's nesting level. * Decrease this parameter's nesting level.
* @see #getNestingLevel() * @see #getNestingLevel()
* @deprecated since 5.2 in favor of retaining the original MethodParameter and * @deprecated in favor of retaining the original MethodParameter and
* using {@link #nested(Integer)} if nesting is required * using {@link #nested(Integer)} if nesting is required
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
@ -307,7 +307,7 @@ public class MethodParameter {
* @param typeIndex the corresponding type index * @param typeIndex the corresponding type index
* (or {@code null} for the default type index) * (or {@code null} for the default type index)
* @see #getNestingLevel() * @see #getNestingLevel()
* @deprecated since 5.2 in favor of {@link #withTypeIndex} * @deprecated in favor of {@link #withTypeIndex}
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public void setTypeIndexForCurrentLevel(int typeIndex) { public void setTypeIndexForCurrentLevel(int typeIndex) {
@ -758,7 +758,7 @@ public class MethodParameter {
* @param methodOrConstructor the Method or Constructor to specify a parameter for * @param methodOrConstructor the Method or Constructor to specify a parameter for
* @param parameterIndex the index of the parameter * @param parameterIndex the index of the parameter
* @return the corresponding MethodParameter instance * @return the corresponding MethodParameter instance
* @deprecated as of 5.0, in favor of {@link #forExecutable} * @deprecated in favor of {@link #forExecutable}
*/ */
@Deprecated(since = "5.0") @Deprecated(since = "5.0")
public static MethodParameter forMethodOrConstructor(Object methodOrConstructor, int parameterIndex) { public static MethodParameter forMethodOrConstructor(Object methodOrConstructor, int parameterIndex) {

5
spring-core/src/main/java/org/springframework/core/annotation/AnnotationFilter.java

@ -75,9 +75,8 @@ public interface AnnotationFilter {
* {@link AnnotationFilter} that never matches and can be used when no * {@link AnnotationFilter} that never matches and can be used when no
* filtering is needed (allowing for any annotation types to be present). * filtering is needed (allowing for any annotation types to be present).
* @see #PLAIN * @see #PLAIN
* @deprecated as of 5.2.6 since the {@link MergedAnnotations} model * @deprecated since the {@link MergedAnnotations} model always ignores lang
* always ignores lang annotations according to the {@link #PLAIN} filter * annotations according to the {@link #PLAIN} filter, for efficiency reasons
* (for efficiency reasons)
*/ */
@Deprecated(since = "5.2.6") @Deprecated(since = "5.2.6")
AnnotationFilter NONE = new AnnotationFilter() { AnnotationFilter NONE = new AnnotationFilter() {

20
spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java

@ -263,7 +263,7 @@ public abstract class AnnotationUtils {
* failed to resolve at runtime) * failed to resolve at runtime)
* @since 4.0.8 * @since 4.0.8
* @see AnnotatedElement#getAnnotations() * @see AnnotatedElement#getAnnotations()
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API * @deprecated since it is superseded by the {@link MergedAnnotations} API
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static Annotation @Nullable [] getAnnotations(AnnotatedElement annotatedElement) { public static Annotation @Nullable [] getAnnotations(AnnotatedElement annotatedElement) {
@ -287,7 +287,7 @@ public abstract class AnnotationUtils {
* failed to resolve at runtime) * failed to resolve at runtime)
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod(Method) * @see org.springframework.core.BridgeMethodResolver#findBridgedMethod(Method)
* @see AnnotatedElement#getAnnotations() * @see AnnotatedElement#getAnnotations()
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API * @deprecated since it is superseded by the {@link MergedAnnotations} API
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static Annotation @Nullable [] getAnnotations(Method method) { public static Annotation @Nullable [] getAnnotations(Method method) {
@ -326,7 +326,7 @@ public abstract class AnnotationUtils {
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod * @see org.springframework.core.BridgeMethodResolver#findBridgedMethod
* @see java.lang.annotation.Repeatable * @see java.lang.annotation.Repeatable
* @see java.lang.reflect.AnnotatedElement#getAnnotationsByType * @see java.lang.reflect.AnnotatedElement#getAnnotationsByType
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API * @deprecated since it is superseded by the {@link MergedAnnotations} API
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedElement annotatedElement, public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedElement annotatedElement,
@ -363,7 +363,7 @@ public abstract class AnnotationUtils {
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod * @see org.springframework.core.BridgeMethodResolver#findBridgedMethod
* @see java.lang.annotation.Repeatable * @see java.lang.annotation.Repeatable
* @see java.lang.reflect.AnnotatedElement#getAnnotationsByType * @see java.lang.reflect.AnnotatedElement#getAnnotationsByType
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API * @deprecated since it is superseded by the {@link MergedAnnotations} API
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedElement annotatedElement, public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedElement annotatedElement,
@ -407,7 +407,7 @@ public abstract class AnnotationUtils {
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod * @see org.springframework.core.BridgeMethodResolver#findBridgedMethod
* @see java.lang.annotation.Repeatable * @see java.lang.annotation.Repeatable
* @see java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType * @see java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API * @deprecated since it is superseded by the {@link MergedAnnotations} API
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(AnnotatedElement annotatedElement, public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(AnnotatedElement annotatedElement,
@ -444,7 +444,7 @@ public abstract class AnnotationUtils {
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod * @see org.springframework.core.BridgeMethodResolver#findBridgedMethod
* @see java.lang.annotation.Repeatable * @see java.lang.annotation.Repeatable
* @see java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType * @see java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API * @deprecated since it is superseded by the {@link MergedAnnotations} API
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(AnnotatedElement annotatedElement, public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(AnnotatedElement annotatedElement,
@ -595,7 +595,7 @@ public abstract class AnnotationUtils {
* or {@code null} if not found * or {@code null} if not found
* @see Class#isAnnotationPresent(Class) * @see Class#isAnnotationPresent(Class)
* @see Class#getDeclaredAnnotations() * @see Class#getDeclaredAnnotations()
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API * @deprecated since it is superseded by the {@link MergedAnnotations} API
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static @Nullable Class<?> findAnnotationDeclaringClass( public static @Nullable Class<?> findAnnotationDeclaringClass(
@ -631,7 +631,7 @@ public abstract class AnnotationUtils {
* @since 3.2.2 * @since 3.2.2
* @see Class#isAnnotationPresent(Class) * @see Class#isAnnotationPresent(Class)
* @see Class#getDeclaredAnnotations() * @see Class#getDeclaredAnnotations()
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API * @deprecated since it is superseded by the {@link MergedAnnotations} API
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static @Nullable Class<?> findAnnotationDeclaringClassForTypes( public static @Nullable Class<?> findAnnotationDeclaringClassForTypes(
@ -684,7 +684,7 @@ public abstract class AnnotationUtils {
* is <em>present</em> and <em>inherited</em> * is <em>present</em> and <em>inherited</em>
* @see Class#isAnnotationPresent(Class) * @see Class#isAnnotationPresent(Class)
* @see #isAnnotationDeclaredLocally(Class, Class) * @see #isAnnotationDeclaredLocally(Class, Class)
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API * @deprecated since it is superseded by the {@link MergedAnnotations} API
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static boolean isAnnotationInherited(Class<? extends Annotation> annotationType, Class<?> clazz) { public static boolean isAnnotationInherited(Class<? extends Annotation> annotationType, Class<?> clazz) {
@ -702,7 +702,7 @@ public abstract class AnnotationUtils {
* @param metaAnnotationType the type of meta-annotation to search for * @param metaAnnotationType the type of meta-annotation to search for
* @return {@code true} if such an annotation is meta-present * @return {@code true} if such an annotation is meta-present
* @since 4.2.1 * @since 4.2.1
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API * @deprecated since it is superseded by the {@link MergedAnnotations} API
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public static boolean isAnnotationMetaPresent(Class<? extends Annotation> annotationType, public static boolean isAnnotationMetaPresent(Class<? extends Annotation> annotationType,

2
spring-core/src/main/java/org/springframework/core/codec/AbstractDataBufferDecoder.java

@ -97,7 +97,7 @@ public abstract class AbstractDataBufferDecoder<T> extends AbstractDecoder<T> {
/** /**
* How to decode a {@code DataBuffer} to the target element type. * How to decode a {@code DataBuffer} to the target element type.
* @deprecated as of 5.2, please implement * @deprecated in favor of implementing
* {@link #decode(DataBuffer, ResolvableType, MimeType, Map)} instead * {@link #decode(DataBuffer, ResolvableType, MimeType, Map)} instead
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")

3
spring-core/src/main/java/org/springframework/core/env/Environment.java vendored

@ -130,8 +130,7 @@ public interface Environment extends PropertyResolver {
* @see #getDefaultProfiles * @see #getDefaultProfiles
* @see #matchesProfiles(String...) * @see #matchesProfiles(String...)
* @see #acceptsProfiles(Profiles) * @see #acceptsProfiles(Profiles)
* @deprecated as of 5.1 in favor of {@link #acceptsProfiles(Profiles)} or * @deprecated in favor of {@link #acceptsProfiles(Profiles)} or {@link #matchesProfiles(String...)}
* {@link #matchesProfiles(String...)}
*/ */
@Deprecated(since = "5.1") @Deprecated(since = "5.1")
boolean acceptsProfiles(String... profiles); boolean acceptsProfiles(String... profiles);

6
spring-core/src/main/java/org/springframework/core/task/AsyncTaskExecutor.java

@ -46,14 +46,14 @@ public interface AsyncTaskExecutor extends TaskExecutor {
/** /**
* Constant that indicates immediate execution. * Constant that indicates immediate execution.
* @deprecated as of 5.3.16 along with {@link #execute(Runnable, long)} * @deprecated along with {@link #execute(Runnable, long)}
*/ */
@Deprecated(since = "5.3.16") @Deprecated(since = "5.3.16")
long TIMEOUT_IMMEDIATE = 0; long TIMEOUT_IMMEDIATE = 0;
/** /**
* Constant that indicates no time limit. * Constant that indicates no time limit.
* @deprecated as of 5.3.16 along with {@link #execute(Runnable, long)} * @deprecated along with {@link #execute(Runnable, long)}
*/ */
@Deprecated(since = "5.3.16") @Deprecated(since = "5.3.16")
long TIMEOUT_INDEFINITE = Long.MAX_VALUE; long TIMEOUT_INDEFINITE = Long.MAX_VALUE;
@ -72,7 +72,7 @@ public interface AsyncTaskExecutor extends TaskExecutor {
* of the timeout (i.e. it cannot be started in time) * of the timeout (i.e. it cannot be started in time)
* @throws TaskRejectedException if the given task was not accepted * @throws TaskRejectedException if the given task was not accepted
* @see #execute(Runnable) * @see #execute(Runnable)
* @deprecated as of 5.3.16 since the common executors do not support start timeouts * @deprecated since the common executors do not support start timeouts
*/ */
@Deprecated(since = "5.3.16") @Deprecated(since = "5.3.16")
default void execute(Runnable task, long startTimeout) { default void execute(Runnable task, long startTimeout) {

2
spring-core/src/main/java/org/springframework/core/task/TaskTimeoutException.java

@ -23,7 +23,7 @@ package org.springframework.core.task;
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 2.0.3 * @since 2.0.3
* @see AsyncTaskExecutor#execute(Runnable, long) * @see AsyncTaskExecutor#execute(Runnable, long)
* @deprecated as of 5.3.16 since the common executors do not support start timeouts * @deprecated since the common executors do not support start timeouts
*/ */
@Deprecated(since = "5.3.16") @Deprecated(since = "5.3.16")
@SuppressWarnings("serial") @SuppressWarnings("serial")

4
spring-core/src/main/java/org/springframework/core/type/StandardAnnotationMetadata.java

@ -58,7 +58,7 @@ public class StandardAnnotationMetadata extends StandardClassMetadata implements
* Create a new {@code StandardAnnotationMetadata} wrapper for the given Class. * Create a new {@code StandardAnnotationMetadata} wrapper for the given Class.
* @param introspectedClass the Class to introspect * @param introspectedClass the Class to introspect
* @see #StandardAnnotationMetadata(Class, boolean) * @see #StandardAnnotationMetadata(Class, boolean)
* @deprecated since 5.2 in favor of the factory method {@link AnnotationMetadata#introspect(Class)} * @deprecated in favor of the factory method {@link AnnotationMetadata#introspect(Class)}
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public StandardAnnotationMetadata(Class<?> introspectedClass) { public StandardAnnotationMetadata(Class<?> introspectedClass) {
@ -75,7 +75,7 @@ public class StandardAnnotationMetadata extends StandardClassMetadata implements
* {@link org.springframework.core.annotation.AnnotationAttributes} for compatibility * {@link org.springframework.core.annotation.AnnotationAttributes} for compatibility
* with ASM-based {@link AnnotationMetadata} implementations * with ASM-based {@link AnnotationMetadata} implementations
* @since 3.1.1 * @since 3.1.1
* @deprecated since 5.2 in favor of the factory method {@link AnnotationMetadata#introspect(Class)}. * @deprecated in favor of the factory method {@link AnnotationMetadata#introspect(Class)}.
* Use {@link MergedAnnotation#asMap(org.springframework.core.annotation.MergedAnnotation.Adapt...) MergedAnnotation.asMap} * Use {@link MergedAnnotation#asMap(org.springframework.core.annotation.MergedAnnotation.Adapt...) MergedAnnotation.asMap}
* from {@link #getAnnotations()} rather than {@link #getAnnotationAttributes(String)} * from {@link #getAnnotations()} rather than {@link #getAnnotationAttributes(String)}
* if {@code nestedAnnotationsAsMap} is {@code false} * if {@code nestedAnnotationsAsMap} is {@code false}

2
spring-core/src/main/java/org/springframework/core/type/StandardClassMetadata.java

@ -40,7 +40,7 @@ public class StandardClassMetadata implements ClassMetadata {
/** /**
* Create a new StandardClassMetadata wrapper for the given Class. * Create a new StandardClassMetadata wrapper for the given Class.
* @param introspectedClass the Class to introspect * @param introspectedClass the Class to introspect
* @deprecated since 5.2 in favor of {@link StandardAnnotationMetadata} * @deprecated in favor of {@link StandardAnnotationMetadata}
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public StandardClassMetadata(Class<?> introspectedClass) { public StandardClassMetadata(Class<?> introspectedClass) {

2
spring-core/src/main/java/org/springframework/core/type/StandardMethodMetadata.java

@ -52,7 +52,7 @@ public class StandardMethodMetadata implements MethodMetadata {
/** /**
* Create a new StandardMethodMetadata wrapper for the given Method. * Create a new StandardMethodMetadata wrapper for the given Method.
* @param introspectedMethod the Method to introspect * @param introspectedMethod the Method to introspect
* @deprecated since 5.2 in favor of obtaining instances via {@link AnnotationMetadata} * @deprecated in favor of obtaining instances via {@link AnnotationMetadata}
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
public StandardMethodMetadata(Method introspectedMethod) { public StandardMethodMetadata(Method introspectedMethod) {

2
spring-core/src/main/java/org/springframework/lang/NonNull.java

@ -42,7 +42,7 @@ import javax.annotation.meta.TypeQualifierNickname;
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 5.0 * @since 5.0
* @deprecated since 7.0; use {@link org.jspecify.annotations.NonNull} instead * @deprecated use {@link org.jspecify.annotations.NonNull} instead
* @see NonNullApi * @see NonNullApi
* @see NonNullFields * @see NonNullFields
* @see Nullable * @see Nullable

2
spring-core/src/main/java/org/springframework/lang/NonNullApi.java

@ -38,7 +38,7 @@ import javax.annotation.meta.TypeQualifierDefault;
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 5.0 * @since 5.0
* @deprecated since 7.0; use {@link org.jspecify.annotations.NullMarked} instead * @deprecated use {@link org.jspecify.annotations.NullMarked} instead
* @see NonNullFields * @see NonNullFields
* @see Nullable * @see Nullable
* @see NonNull * @see NonNull

2
spring-core/src/main/java/org/springframework/lang/NonNullFields.java

@ -37,7 +37,7 @@ import javax.annotation.meta.TypeQualifierDefault;
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.0 * @since 5.0
* @deprecated since 7.0; use {@link org.jspecify.annotations.NullMarked} instead * @deprecated use {@link org.jspecify.annotations.NullMarked} instead
* @see NonNullApi * @see NonNullApi
* @see Nullable * @see Nullable
* @see NonNull * @see NonNull

2
spring-core/src/main/java/org/springframework/lang/Nullable.java

@ -42,7 +42,7 @@ import javax.annotation.meta.TypeQualifierNickname;
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 5.0 * @since 5.0
* @deprecated since 7.0; use {@link org.jspecify.annotations.Nullable} instead * @deprecated use {@link org.jspecify.annotations.Nullable} instead
* @see NonNullApi * @see NonNullApi
* @see NonNullFields * @see NonNullFields
* @see NonNull * @see NonNull

6
spring-core/src/main/java/org/springframework/util/ClassUtils.java

@ -939,7 +939,7 @@ public abstract class ClassUtils {
* Check whether the given object is a CGLIB proxy. * Check whether the given object is a CGLIB proxy.
* @param object the object to check * @param object the object to check
* @see org.springframework.aop.support.AopUtils#isCglibProxy(Object) * @see org.springframework.aop.support.AopUtils#isCglibProxy(Object)
* @deprecated as of 5.2, in favor of custom (possibly narrower) checks * @deprecated in favor of custom (possibly narrower) checks
* such as for a Spring AOP proxy * such as for a Spring AOP proxy
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
@ -951,7 +951,7 @@ public abstract class ClassUtils {
* Check whether the specified class is a CGLIB-generated class. * Check whether the specified class is a CGLIB-generated class.
* @param clazz the class to check * @param clazz the class to check
* @see #getUserClass(Class) * @see #getUserClass(Class)
* @deprecated as of 5.2, in favor of custom (possibly narrower) checks * @deprecated in favor of custom (possibly narrower) checks
* or simply a check for containing {@link #CGLIB_CLASS_SEPARATOR} * or simply a check for containing {@link #CGLIB_CLASS_SEPARATOR}
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")
@ -963,7 +963,7 @@ public abstract class ClassUtils {
* Check whether the specified class name is a CGLIB-generated class. * Check whether the specified class name is a CGLIB-generated class.
* @param className the class name to check * @param className the class name to check
* @see #CGLIB_CLASS_SEPARATOR * @see #CGLIB_CLASS_SEPARATOR
* @deprecated as of 5.2, in favor of custom (possibly narrower) checks * @deprecated in favor of custom (possibly narrower) checks
* or simply a check for containing {@link #CGLIB_CLASS_SEPARATOR} * or simply a check for containing {@link #CGLIB_CLASS_SEPARATOR}
*/ */
@Deprecated(since = "5.2") @Deprecated(since = "5.2")

4
spring-core/src/main/java/org/springframework/util/StringUtils.java

@ -105,8 +105,8 @@ public abstract class StringUtils {
* {@link #hasLength(String)} or {@link #hasText(String)} instead.</b> * {@link #hasLength(String)} or {@link #hasText(String)} instead.</b>
* @param str the candidate object (possibly a {@code String}) * @param str the candidate object (possibly a {@code String})
* @since 3.2.1 * @since 3.2.1
* @deprecated as of 5.3, in favor of {@link #hasLength(String)} and * @deprecated in favor of {@link #hasLength(String)} and {@link #hasText(String)}
* {@link #hasText(String)} (or {@link ObjectUtils#isEmpty(Object)}) * (or {@link ObjectUtils#isEmpty(Object)})
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
public static boolean isEmpty(@Nullable Object str) { public static boolean isEmpty(@Nullable Object str) {

12
spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java

@ -367,7 +367,7 @@ public interface JdbcOperations {
* @param rse a callback that will extract results * @param rse a callback that will extract results
* @return an arbitrary result object, as returned by the ResultSetExtractor * @return an arbitrary result object, as returned by the ResultSetExtractor
* @throws DataAccessException if the query fails * @throws DataAccessException if the query fails
* @deprecated as of 5.3, in favor of {@link #query(String, ResultSetExtractor, Object...)} * @deprecated in favor of {@link #query(String, ResultSetExtractor, Object...)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
<T> @Nullable T query(String sql, @Nullable Object @Nullable [] args, ResultSetExtractor<T> rse) throws DataAccessException; <T> @Nullable T query(String sql, @Nullable Object @Nullable [] args, ResultSetExtractor<T> rse) throws DataAccessException;
@ -438,7 +438,7 @@ public interface JdbcOperations {
* only the argument value but also the SQL type and optionally the scale * only the argument value but also the SQL type and optionally the scale
* @param rch a callback that will extract results, one row at a time * @param rch a callback that will extract results, one row at a time
* @throws DataAccessException if the query fails * @throws DataAccessException if the query fails
* @deprecated as of 5.3, in favor of {@link #query(String, RowCallbackHandler, Object...)} * @deprecated in favor of {@link #query(String, RowCallbackHandler, Object...)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
void query(String sql, @Nullable Object @Nullable [] args, RowCallbackHandler rch) throws DataAccessException; void query(String sql, @Nullable Object @Nullable [] args, RowCallbackHandler rch) throws DataAccessException;
@ -514,7 +514,7 @@ public interface JdbcOperations {
* @param rowMapper a callback that will map one object per row * @param rowMapper a callback that will map one object per row
* @return the result List, containing mapped objects * @return the result List, containing mapped objects
* @throws DataAccessException if the query fails * @throws DataAccessException if the query fails
* @deprecated as of 5.3, in favor of {@link #query(String, RowMapper, Object...)} * @deprecated in favor of {@link #query(String, RowMapper, Object...)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
<T> List<T> query(String sql, @Nullable Object @Nullable [] args, RowMapper<T> rowMapper) throws DataAccessException; <T> List<T> query(String sql, @Nullable Object @Nullable [] args, RowMapper<T> rowMapper) throws DataAccessException;
@ -621,7 +621,7 @@ public interface JdbcOperations {
* @throws org.springframework.dao.IncorrectResultSizeDataAccessException * @throws org.springframework.dao.IncorrectResultSizeDataAccessException
* if the query does not return exactly one row * if the query does not return exactly one row
* @throws DataAccessException if the query fails * @throws DataAccessException if the query fails
* @deprecated as of 5.3, in favor of {@link #queryForObject(String, RowMapper, Object...)} * @deprecated in favor of {@link #queryForObject(String, RowMapper, Object...)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
<T> @Nullable T queryForObject(String sql, @Nullable Object @Nullable [] args, RowMapper<T> rowMapper) throws DataAccessException; <T> @Nullable T queryForObject(String sql, @Nullable Object @Nullable [] args, RowMapper<T> rowMapper) throws DataAccessException;
@ -685,7 +685,7 @@ public interface JdbcOperations {
* if the query does not return a row containing a single column * if the query does not return a row containing a single column
* @throws DataAccessException if the query fails * @throws DataAccessException if the query fails
* @see #queryForObject(String, Class) * @see #queryForObject(String, Class)
* @deprecated as of 5.3, in favor of {@link #queryForObject(String, Class, Object...)} * @deprecated in favor of {@link #queryForObject(String, Class, Object...)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
<T> @Nullable T queryForObject(String sql, @Nullable Object @Nullable [] args, Class<T> requiredType) throws DataAccessException; <T> @Nullable T queryForObject(String sql, @Nullable Object @Nullable [] args, Class<T> requiredType) throws DataAccessException;
@ -789,7 +789,7 @@ public interface JdbcOperations {
* @throws DataAccessException if the query fails * @throws DataAccessException if the query fails
* @see #queryForList(String, Class) * @see #queryForList(String, Class)
* @see SingleColumnRowMapper * @see SingleColumnRowMapper
* @deprecated as of 5.3, in favor of {@link #queryForList(String, Class, Object...)} * @deprecated in favor of {@link #queryForList(String, Class, Object...)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
<T> List<T> queryForList(String sql, @Nullable Object @Nullable [] args, Class<T> elementType) throws DataAccessException; <T> List<T> queryForList(String sql, @Nullable Object @Nullable [] args, Class<T> elementType) throws DataAccessException;

4
spring-jdbc/src/main/java/org/springframework/jdbc/core/support/JdbcBeanDefinitionReader.java

@ -42,8 +42,8 @@ import org.springframework.util.Assert;
* @author Juergen Hoeller * @author Juergen Hoeller
* @see #loadBeanDefinitions * @see #loadBeanDefinitions
* @see org.springframework.beans.factory.support.PropertiesBeanDefinitionReader * @see org.springframework.beans.factory.support.PropertiesBeanDefinitionReader
* @deprecated as of 5.3, in favor of Spring's common bean definition formats * @deprecated in favor of Spring's common bean definition formats and/or custom
* and/or custom reader implementations * reader implementations
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
public class JdbcBeanDefinitionReader { public class JdbcBeanDefinitionReader {

3
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DataSourceUtils.java

@ -263,8 +263,7 @@ public abstract class DataSourceUtils {
* regarding read-only flag and isolation level. * regarding read-only flag and isolation level.
* @param con the Connection to reset * @param con the Connection to reset
* @param previousIsolationLevel the isolation level to restore, if any * @param previousIsolationLevel the isolation level to restore, if any
* @deprecated as of 5.1.11, in favor of * @deprecated in favor of {@link #resetConnectionAfterTransaction(Connection, Integer, boolean)}
* {@link #resetConnectionAfterTransaction(Connection, Integer, boolean)}
*/ */
@Deprecated(since = "5.1.11") @Deprecated(since = "5.1.11")
public static void resetConnectionAfterTransaction(Connection con, @Nullable Integer previousIsolationLevel) { public static void resetConnectionAfterTransaction(Connection con, @Nullable Integer previousIsolationLevel) {

2
spring-jdbc/src/main/java/org/springframework/jdbc/support/DatabaseStartupValidator.java

@ -75,7 +75,7 @@ public class DatabaseStartupValidator implements InitializingBean {
/** /**
* Set the SQL query string to use for validation. * Set the SQL query string to use for validation.
* @deprecated as of 5.3, in favor of the JDBC 4.0 connection validation * @deprecated in favor of the JDBC 4.0 connection validation
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
public void setValidationQuery(String validationQuery) { public void setValidationQuery(String validationQuery) {

2
spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.java

@ -375,7 +375,7 @@ public abstract class JdbcUtils {
* @throws MetaDataAccessException if we couldn't access the DatabaseMetaData * @throws MetaDataAccessException if we couldn't access the DatabaseMetaData
* or failed to invoke the specified method * or failed to invoke the specified method
* @see java.sql.DatabaseMetaData * @see java.sql.DatabaseMetaData
* @deprecated as of 5.2.9, in favor of * @deprecated in favor of
* {@link #extractDatabaseMetaData(DataSource, DatabaseMetaDataCallback)} * {@link #extractDatabaseMetaData(DataSource, DatabaseMetaDataCallback)}
* with a lambda expression or method reference and a generically typed result * with a lambda expression or method reference and a generically typed result
*/ */

6
spring-messaging/src/main/java/org/springframework/messaging/rsocket/RSocketRequester.java

@ -310,7 +310,7 @@ public interface RSocketRequester extends Disposable {
* @param port the server port * @param port the server port
* @return an {@code RSocketRequester} for the connection * @return an {@code RSocketRequester} for the connection
* @see TcpClientTransport * @see TcpClientTransport
* @deprecated as of 5.3 in favor of {@link #tcp(String, int)} * @deprecated in favor of {@link #tcp(String, int)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
Mono<RSocketRequester> connectTcp(String host, int port); Mono<RSocketRequester> connectTcp(String host, int port);
@ -320,7 +320,7 @@ public interface RSocketRequester extends Disposable {
* @param uri the RSocket server endpoint URI * @param uri the RSocket server endpoint URI
* @return an {@code RSocketRequester} for the connection * @return an {@code RSocketRequester} for the connection
* @see WebsocketClientTransport * @see WebsocketClientTransport
* @deprecated as of 5.3 in favor of {@link #websocket(URI)} * @deprecated in favor of {@link #websocket(URI)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
Mono<RSocketRequester> connectWebSocket(URI uri); Mono<RSocketRequester> connectWebSocket(URI uri);
@ -329,7 +329,7 @@ public interface RSocketRequester extends Disposable {
* Connect to the server with the given {@code ClientTransport}. * Connect to the server with the given {@code ClientTransport}.
* @param transport the client transport to use * @param transport the client transport to use
* @return an {@code RSocketRequester} for the connection * @return an {@code RSocketRequester} for the connection
* @deprecated as of 5.3 in favor of {@link #transport(ClientTransport)} * @deprecated in favor of {@link #transport(ClientTransport)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
Mono<RSocketRequester> connect(ClientTransport transport); Mono<RSocketRequester> connect(ClientTransport transport);

2
spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java

@ -531,7 +531,7 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init
/** /**
* Determine the specific transaction manager to use for the given transaction. * Determine the specific transaction manager to use for the given transaction.
* @deprecated as of 6.2, in favor of {@link #determineTransactionManager(TransactionAttribute, Class)} * @deprecated in favor of {@link #determineTransactionManager(TransactionAttribute, Class)}
*/ */
@Deprecated(since = "6.2") @Deprecated(since = "6.2")
protected @Nullable TransactionManager determineTransactionManager(@Nullable TransactionAttribute txAttr) { protected @Nullable TransactionManager determineTransactionManager(@Nullable TransactionAttribute txAttr) {

4
spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionInterceptor.java

@ -83,7 +83,7 @@ public class TransactionInterceptor extends TransactionAspectSupport implements
* @param tas the attribute source to be used to find transaction attributes * @param tas the attribute source to be used to find transaction attributes
* @see #setTransactionManager * @see #setTransactionManager
* @see #setTransactionAttributeSource * @see #setTransactionAttributeSource
* @deprecated as of 5.2.5, in favor of * @deprecated in favor of
* {@link #TransactionInterceptor(TransactionManager, TransactionAttributeSource)} * {@link #TransactionInterceptor(TransactionManager, TransactionAttributeSource)}
*/ */
@Deprecated(since = "5.2.5") @Deprecated(since = "5.2.5")
@ -98,7 +98,7 @@ public class TransactionInterceptor extends TransactionAspectSupport implements
* @param attributes the transaction attributes in properties format * @param attributes the transaction attributes in properties format
* @see #setTransactionManager * @see #setTransactionManager
* @see #setTransactionAttributes(java.util.Properties) * @see #setTransactionAttributes(java.util.Properties)
* @deprecated as of 5.2.5, in favor of {@link #setTransactionAttributes(Properties)} * @deprecated in favor of {@link #setTransactionAttributes(Properties)}
*/ */
@Deprecated(since = "5.2.5") @Deprecated(since = "5.2.5")
public TransactionInterceptor(PlatformTransactionManager ptm, Properties attributes) { public TransactionInterceptor(PlatformTransactionManager ptm, Properties attributes) {

2
spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerMapping.java

@ -68,7 +68,7 @@ public interface HandlerMapping {
* {@link org.springframework.web.util.UrlPathHelper} could be the full path * {@link org.springframework.web.util.UrlPathHelper} could be the full path
* or without the context path, decoded or not, etc. * or without the context path, decoded or not, etc.
* @since 5.2 * @since 5.2
* @deprecated as of 5.3 in favor of * @deprecated in favor of
* {@link org.springframework.web.util.UrlPathHelper#PATH_ATTRIBUTE} and * {@link org.springframework.web.util.UrlPathHelper#PATH_ATTRIBUTE} and
* {@link org.springframework.web.util.ServletRequestPathUtils#PATH_ATTRIBUTE}. * {@link org.springframework.web.util.ServletRequestPathUtils#PATH_ATTRIBUTE}.
* To access the cached path used for request mapping, use * To access the cached path used for request mapping, use

6
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/WebContentInterceptor.java

@ -108,7 +108,7 @@ public class WebContentInterceptor extends WebContentGenerator implements Handle
* Shortcut to the * Shortcut to the
* {@link org.springframework.web.util.UrlPathHelper#setAlwaysUseFullPath * {@link org.springframework.web.util.UrlPathHelper#setAlwaysUseFullPath
* same property} on the configured {@code UrlPathHelper}. * same property} on the configured {@code UrlPathHelper}.
* @deprecated as of 5.3, the path is resolved externally and obtained with * @deprecated the path is resolved externally and obtained with
* {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)} * {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
@ -119,7 +119,7 @@ public class WebContentInterceptor extends WebContentGenerator implements Handle
* Shortcut to the * Shortcut to the
* {@link org.springframework.web.util.UrlPathHelper#setUrlDecode * {@link org.springframework.web.util.UrlPathHelper#setUrlDecode
* same property} on the configured {@code UrlPathHelper}. * same property} on the configured {@code UrlPathHelper}.
* @deprecated as of 5.3, the path is resolved externally and obtained with * @deprecated the path is resolved externally and obtained with
* {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)} * {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
@ -128,7 +128,7 @@ public class WebContentInterceptor extends WebContentGenerator implements Handle
/** /**
* Set the UrlPathHelper to use for resolution of lookup paths. * Set the UrlPathHelper to use for resolution of lookup paths.
* @deprecated as of 5.3, the path is resolved externally and obtained with * @deprecated the path is resolved externally and obtained with
* {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)} * {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")

9
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java

@ -113,8 +113,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping
/** /**
* Full constructor with a mapping name. * Full constructor with a mapping name.
* @deprecated as of 5.3 in favor using {@link RequestMappingInfo.Builder} via * @deprecated in favor using {@link RequestMappingInfo.Builder} via {@link #paths(String...)}.
* {@link #paths(String...)}.
*/ */
@SuppressWarnings("removal") @SuppressWarnings("removal")
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
@ -138,7 +137,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping
/** /**
* Create an instance with the given conditions. * Create an instance with the given conditions.
* @deprecated as of 5.3 in favor using {@link RequestMappingInfo.Builder} via * @deprecated in favor using {@link RequestMappingInfo.Builder} via
* {@link #paths(String...)}. * {@link #paths(String...)}.
*/ */
@SuppressWarnings("removal") @SuppressWarnings("removal")
@ -983,7 +982,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping
* Set a custom UrlPathHelper to use for the PatternsRequestCondition. * Set a custom UrlPathHelper to use for the PatternsRequestCondition.
* <p>By default this is not set. * <p>By default this is not set.
* @since 4.2.8 * @since 4.2.8
* @deprecated as of 5.3, the path is resolved externally and obtained with * @deprecated the path is resolved externally and obtained with
* {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)} * {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)}
*/ */
@Deprecated(since = "5.3") @Deprecated(since = "5.3")
@ -992,7 +991,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping
/** /**
* Return the configured UrlPathHelper. * Return the configured UrlPathHelper.
* @deprecated as of 5.3, the path is resolved externally and obtained with * @deprecated the path is resolved externally and obtained with
* {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)}; * {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)};
* this method always returns {@link UrlPathHelper#defaultInstance}. * this method always returns {@link UrlPathHelper#defaultInstance}.
*/ */

Loading…
Cancel
Save