Skip to content

Commit

Permalink
Deprecated unused findAutowireCandidates template method (removed in …
Browse files Browse the repository at this point in the history
…6.0)

See gh-29487
  • Loading branch information
jhoeller committed Nov 14, 2022
1 parent 698f899 commit 49ee4a4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -438,7 +438,6 @@ public void processInjection(Object bean) throws BeanCreationException {
}
}


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

0 comments on commit 49ee4a4

Please sign in to comment.