for (Iterator it = ((RuntimeInvisibleAnnotations) current).annotations.iterator(); it.hasNext();) {
Annotation annotation = (Annotation) it.next();
if (CustomAttribute.TYPE.equals(annotation.type)) {
annotations.add(CustomAttributeHelper.extractCustomAnnotation(annotation));
} else {
AnnotationInfo annotationInfo = AsmClassInfo.getAnnotationInfo(
annotation,
loader
);
annotations.add(annotationInfo);
}
}
} else if (current instanceof RuntimeVisibleAnnotations) {
for (Iterator it = ((RuntimeVisibleAnnotations) current).annotations.iterator(); it.hasNext();) {
Annotation annotation = (Annotation) it.next();
AnnotationInfo annotationInfo = AsmClassInfo.getAnnotationInfo(
annotation,
loader
);
annotations.add(annotationInfo);
}