Skip to content

Commit

Permalink
Avoid annotation attribute lookup in OnBeanCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
dreis2211 authored and snicoll committed Jul 31, 2018
1 parent 5341b4f commit 449e1cc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,7 @@ private static class BeanSearchSpec {
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()) {
Expand Down

0 comments on commit 449e1cc

Please sign in to comment.