Avoid annotation attribute lookup in OnBeanCondition
Close gh-13941
This commit is contained in:
parent
5341b4fb1f
commit
449e1cce9f
|
@ -365,8 +365,7 @@ class OnBeanCondition extends SpringBootCondition implements ConfigurationCondit
|
|||
collect(attributes, "annotation", this.annotations);
|
||||
collect(attributes, "ignored", this.ignoredTypes);
|
||||
collect(attributes, "ignoredType", this.ignoredTypes);
|
||||
this.strategy = (SearchStrategy) metadata
|
||||
.getAnnotationAttributes(annotationType.getName()).get("search");
|
||||
this.strategy = (SearchStrategy) attributes.getFirst("search");
|
||||
BeanTypeDeductionException deductionException = null;
|
||||
try {
|
||||
if (this.types.isEmpty() && this.names.isEmpty()) {
|
||||
|
|
Loading…
Reference in New Issue