in src/main/java/com/amazonaws/eclipse/simpleworkflow/asynchrony/annotationprocessor/ProcessorUtils.java [404:424]
public static String getAnnotationsText(ProcessingEnvironment env, ExecutableElement method, Set<DeclaredType> annotationsToExcludeFromCopying) {
StringBuilder annotationsText = new StringBuilder();
for (AnnotationMirror mirror : method.getAnnotationMirrors()) {
boolean toInclude = true;
if (annotationsToExcludeFromCopying != null) {
for (DeclaredType toExclude : annotationsToExcludeFromCopying) {
if (env.getTypeUtils().isSameType(mirror.getAnnotationType(), toExclude)) {
toInclude = false;
break;
}
}
}
if (toInclude) {
StringBuilder annotationText = new StringBuilder();
ProcessorUtils.writeAnnotation(annotationText, mirror);
annotationsText.append(annotationText.toString());
}
}
return annotationsText.toString();
}