mv.visitInsn(returnType.getOpcode(IRETURN));
// Move annotations
if (annotations != null) {
for (int i = 0; i < annotations.size(); i++) {
AnnotationDescriptor ad = (AnnotationDescriptor) annotations.get(i);
ad.visitAnnotation(mv);
}
}
// Move parameter annotations
if (paramAnnotations != null && ! paramAnnotations.isEmpty()) {
Iterator ids = paramAnnotations.keySet().iterator();
while(ids.hasNext()) {
Integer id = (Integer) ids.next();
List ads = (List) paramAnnotations.get(id);
for (int i = 0; i < ads.size(); i++) {
AnnotationDescriptor ad = (AnnotationDescriptor) ads.get(i);
ad.visitParameterAnnotation(id.intValue(), mv);
}
}
}
mv.visitMaxs(0, 0);