|
|
|
@ -40,6 +40,8 @@ import org.springframework.util.Assert; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
final class MergedAnnotationsCollection implements MergedAnnotations { |
|
|
|
final class MergedAnnotationsCollection implements MergedAnnotations { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final MergedAnnotation<?> [] EMPTY_ANNOTATIONS = new MergedAnnotation<?>[0]; |
|
|
|
|
|
|
|
|
|
|
|
private final MergedAnnotation<?>[] annotations; |
|
|
|
private final MergedAnnotation<?>[] annotations; |
|
|
|
|
|
|
|
|
|
|
|
private final AnnotationTypeMappings[] mappings; |
|
|
|
private final AnnotationTypeMappings[] mappings; |
|
|
|
@ -47,7 +49,7 @@ final class MergedAnnotationsCollection implements MergedAnnotations { |
|
|
|
|
|
|
|
|
|
|
|
private MergedAnnotationsCollection(Collection<MergedAnnotation<?>> annotations) { |
|
|
|
private MergedAnnotationsCollection(Collection<MergedAnnotation<?>> annotations) { |
|
|
|
Assert.notNull(annotations, "Annotations must not be null"); |
|
|
|
Assert.notNull(annotations, "Annotations must not be null"); |
|
|
|
this.annotations = annotations.toArray(new MergedAnnotation<?>[0]); |
|
|
|
this.annotations = annotations.toArray(EMPTY_ANNOTATIONS); |
|
|
|
this.mappings = new AnnotationTypeMappings[this.annotations.length]; |
|
|
|
this.mappings = new AnnotationTypeMappings[this.annotations.length]; |
|
|
|
for (int i = 0; i < this.annotations.length; i++) { |
|
|
|
for (int i = 0; i < this.annotations.length; i++) { |
|
|
|
MergedAnnotation<?> annotation = this.annotations[i]; |
|
|
|
MergedAnnotation<?> annotation = this.annotations[i]; |
|
|
|
|