Skip to content

Commit 49ee4a4

Browse files
committed
Deprecated unused findAutowireCandidates template method (removed in 6.0)
See gh-29487
1 parent 698f899 commit 49ee4a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -438,7 +438,6 @@ public void processInjection(Object bean) throws BeanCreationException {
438438
}
439439
}
440440

441-
442441
private InjectionMetadata findAutowiringMetadata(String beanName, Class<?> clazz, @Nullable PropertyValues pvs) {
443442
// Fall back to class name as cache key, for backwards compatibility with custom callers.
444443
String cacheKey = (StringUtils.hasLength(beanName) ? beanName : clazz.getName());
@@ -563,7 +562,9 @@ protected boolean determineRequiredStatus(AnnotationAttributes ann) {
563562
* @param type the type of the bean
564563
* @return the target beans, or an empty Collection if no bean of this type is found
565564
* @throws BeansException if bean retrieval failed
565+
* @deprecated since 5.3.24 since it is unused in the meantime
566566
*/
567+
@Deprecated
567568
protected <T> Map<String, T> findAutowireCandidates(Class<T> type) throws BeansException {
568569
if (this.beanFactory == null) {
569570
throw new IllegalStateException("No BeanFactory configured - " +

0 commit comments

Comments
 (0)