Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit 9fe35e3

Browse files
committed
Fix copying non-AA array of annotations
#2041
1 parent 1868ef6 commit 9fe35e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/helper

‎AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/helper/APTCodeModelHelper.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public void copyNonAAAnnotations(IJAnnotatable annotatable, List<? extends Annot
328328
public void copyAnnotation(IJAnnotatable annotatable, AnnotationMirror annotationMirror) {
329329
Map<? extends ExecutableElement, ? extends AnnotationValue> parameters = annotationMirror.getElementValues();
330330

331-
if (!hasAnnotation(annotatable, annotationMirror)) {
331+
if (!hasAnnotation(annotatable, annotationMirror) || annotatable instanceof JAnnotationArrayMember) {
332332
AbstractJClass annotation = typeMirrorToJClass(annotationMirror.getAnnotationType());
333333
JAnnotationUse annotate = annotatable.annotate(annotation);
334334

0 commit comments

Comments
 (0)