Skip to content

Commit f9fa7cc

Browse files
quaffrstoyanchev
authored andcommitted
Add missing "since" in @Deprecated
See gh-34942 Signed-off-by: Yanming Zhou <[email protected]>
1 parent b7dfd68 commit f9fa7cc

File tree

44 files changed

+111
-111
lines changed

Some content is hidden

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

44 files changed

+111
-111
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public abstract class BeanUtils {
9898
* @deprecated as of Spring 5.0, following the deprecation of
9999
* {@link Class#newInstance()} in JDK 9
100100
*/
101-
@Deprecated
101+
@Deprecated(since = "5.0")
102102
public static <T> T instantiate(Class<T> clazz) throws BeanInstantiationException {
103103
Assert.notNull(clazz, "Class must not be null");
104104
if (clazz.isInterface()) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 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.
@@ -100,7 +100,7 @@ public interface AutowireCapableBeanFactory extends BeanFactory {
100100
* @deprecated as of Spring 3.0: If you are using mixed autowiring strategies,
101101
* prefer annotation-based autowiring for clearer demarcation of autowiring needs.
102102
*/
103-
@Deprecated
103+
@Deprecated(since = "3.0")
104104
int AUTOWIRE_AUTODETECT = 4;
105105

106106
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public Object configureBean(Object existingBean, String beanName) throws BeansEx
363363
// Specialized methods for fine-grained control over the bean lifecycle
364364
//-------------------------------------------------------------------------
365365

366-
@Deprecated
366+
@Deprecated(since = "6.1")
367367
@Override
368368
public Object createBean(Class<?> beanClass, int autowireMode, boolean dependencyCheck) throws BeansException {
369369
// Use non-singleton bean definition, to avoid registering bean as dependent bean.

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

Lines changed: 2 additions & 2 deletions
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.
@@ -98,7 +98,7 @@ public abstract class AbstractBeanDefinition extends BeanMetadataAttributeAccess
9898
* @deprecated as of Spring 3.0: If you are using mixed autowiring strategies,
9999
* use annotation-based autowiring for clearer demarcation of autowiring needs.
100100
*/
101-
@Deprecated
101+
@Deprecated(since = "3.0")
102102
public static final int AUTOWIRE_AUTODETECT = AutowireCapableBeanFactory.AUTOWIRE_AUTODETECT;
103103

104104
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
* @deprecated as of 5.3, in favor of Spring's common bean definition formats
7979
* and/or custom reader implementations
8080
*/
81-
@Deprecated
81+
@Deprecated(since = "5.3")
8282
public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader {
8383

8484
/**

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

Lines changed: 2 additions & 2 deletions
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.
@@ -158,7 +158,7 @@ public void setFallbackToSystemLocale(boolean fallbackToSystemLocale) {
158158
* @since 4.3
159159
* @deprecated as of 5.2.2, in favor of {@link #getDefaultLocale()}
160160
*/
161-
@Deprecated
161+
@Deprecated(since = "5.2.2")
162162
protected boolean isFallbackToSystemLocale() {
163163
return this.fallbackToSystemLocale;
164164
}

spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ protected void processProperties(ConfigurableListableBeanFactory beanFactoryToPr
200200
* {@link #processProperties(ConfigurableListableBeanFactory, ConfigurablePropertyResolver)}
201201
*/
202202
@Override
203-
@Deprecated
203+
@Deprecated(since = "3.1")
204204
protected void processProperties(ConfigurableListableBeanFactory beanFactory, Properties props) {
205205
throw new UnsupportedOperationException(
206206
"Call processProperties(ConfigurableListableBeanFactory, ConfigurablePropertyResolver) instead");

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

Lines changed: 2 additions & 2 deletions
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.
@@ -153,7 +153,7 @@ public void execute(Runnable task) {
153153
this.adaptedExecutor.execute(task);
154154
}
155155

156-
@Deprecated
156+
@Deprecated(since = "5.3.16")
157157
@Override
158158
public void execute(Runnable task, long startTimeout) {
159159
this.adaptedExecutor.execute(task, startTimeout);

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

Lines changed: 2 additions & 2 deletions
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.
@@ -302,7 +302,7 @@ public int getActiveCount() {
302302
* @deprecated as of 5.3.9, in favor of direct
303303
* {@link #getScheduledThreadPoolExecutor()} access
304304
*/
305-
@Deprecated
305+
@Deprecated(since = "5.3.9")
306306
public boolean isRemoveOnCancelPolicy() {
307307
if (this.scheduledExecutor == null) {
308308
// Not initialized yet: return our setting for the time being.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private GenericTypeResolver() {
6161
* @return the corresponding generic parameter or return type
6262
* @deprecated since 5.2 in favor of {@code methodParameter.withContainingClass(implementationClass).getParameterType()}
6363
*/
64-
@Deprecated
64+
@Deprecated(since = "5.2")
6565
public static Class<?> resolveParameterType(MethodParameter methodParameter, Class<?> implementationClass) {
6666
Assert.notNull(methodParameter, "MethodParameter must not be null");
6767
Assert.notNull(implementationClass, "Class must not be null");

0 commit comments

Comments
 (0)