- annotation_bytearray_t *ba = NULL;
-
-#if defined(ENABLE_ANNOTATIONS)
- /* get annotations */
- ba = method_get_annotations(m);
-
- if (ba != NULL) {
- annotations = builtin_newarray_byte(ba->size);
-
- if (annotations == NULL)
- return NULL;
-
- MCOPY(annotations->data, ba->data, uint8_t, ba->size);
- }
-
- /* get parameter annotations */
- ba = method_get_parameterannotations(m);
-
- if (ba != NULL) {
- parameterAnnotations = builtin_newarray_byte(ba->size);
-
- if (parameterAnnotations == NULL)
- return NULL;
-
- MCOPY(parameterAnnotations->data, ba->data, uint8_t, ba->size);
- }
-
- /* get annotation default value */
- ba = method_get_annotationdefault(m);
-
- if (ba != NULL) {
- annotationDefault = builtin_newarray_byte(ba->size);
-
- if (annotationDefault == NULL)
- return NULL;
-
- MCOPY(annotationDefault->data, ba->data, uint8_t, ba->size);
- }
-#endif