BM#isQualifier(), avoid logging WARN message when it is not needed
@@ -61,6 +61,9 @@ public class QualifierModel<T extends Annotation> extends AbstractBindingModel<T
@Override
protected void initValid(EnhancedAnnotation<T> annotatedAnnotation) {
super.initValid(annotatedAnnotation);
+ // The annotation either has @Qualifier or was registered via extension
+ // Only check annotation method in case the annotation itself is valid
+ if (isValid()) {
for (EnhancedAnnotatedMethod<?, ?> annotatedMethod : annotatedAnnotation.getMembers()) {
if ((Reflections.isArrayType(annotatedMethod.getJavaClass()) || Annotation.class.isAssignableFrom(annotatedMethod.getJavaClass())) && !getNonBindingMembers().contains(annotatedMethod.slim())) {
MetadataLogger.LOG.nonBindingMemberType(annotatedMethod);
@@ -68,6 +71,7 @@ public class QualifierModel<T extends Annotation> extends AbstractBindingModel<T
}
}
}
+ }
/**
* Validates the members
