286 /** |
286 /** |
287 * Get the annotations of this package. |
287 * Get the annotations of this package. |
288 * Return an empty array if there are none. |
288 * Return an empty array if there are none. |
289 */ |
289 */ |
290 public AnnotationDesc[] annotations() { |
290 public AnnotationDesc[] annotations() { |
291 AnnotationDesc res[] = new AnnotationDesc[sym.getAnnotationMirrors().length()]; |
291 AnnotationDesc res[] = new AnnotationDesc[sym.getRawAttributes().length()]; |
292 int i = 0; |
292 int i = 0; |
293 for (Attribute.Compound a : sym.getAnnotationMirrors()) { |
293 for (Attribute.Compound a : sym.getRawAttributes()) { |
294 res[i++] = new AnnotationDescImpl(env, a); |
294 res[i++] = new AnnotationDescImpl(env, a); |
295 } |
295 } |
296 return res; |
296 return res; |
297 } |
297 } |
298 |
298 |