Commit c58b228e authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #13941 from dreis2211:avoid-annotation-attributes-lookup

* pr/13941:
  Avoid annotation attribute lookup in OnBeanCondition
parents 5341b4fb 449e1cce
...@@ -365,8 +365,7 @@ class OnBeanCondition extends SpringBootCondition implements ConfigurationCondit ...@@ -365,8 +365,7 @@ class OnBeanCondition extends SpringBootCondition implements ConfigurationCondit
collect(attributes, "annotation", this.annotations); collect(attributes, "annotation", this.annotations);
collect(attributes, "ignored", this.ignoredTypes); collect(attributes, "ignored", this.ignoredTypes);
collect(attributes, "ignoredType", this.ignoredTypes); collect(attributes, "ignoredType", this.ignoredTypes);
this.strategy = (SearchStrategy) metadata this.strategy = (SearchStrategy) attributes.getFirst("search");
.getAnnotationAttributes(annotationType.getName()).get("search");
BeanTypeDeductionException deductionException = null; BeanTypeDeductionException deductionException = null;
try { try {
if (this.types.isEmpty() && this.names.isEmpty()) { if (this.types.isEmpty() && this.names.isEmpty()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment