We currently have two private implementations that adapt an array of annotations to an AnnotatedElement
: AnnotatedElementUtils.AnnotatedElementForAnnotations
and TypeDescriptor.AnnotatedElementAdapter
.
The latter has been optimized over the years; whereas, the former has not.
Since there is not much point in keeping both implementations, we should extract AnnotatedElementAdapter
to a public type and get rid of AnnotatedElementForAnnotations
.