src/share/classes/com/sun/tools/javadoc/PackageDocImpl.java

changeset 1464
f72c9c5aeaef
parent 1443
cfde9737131e
child 1706
95d29b99e5b3
equal deleted inserted replaced
1463:67b01d295cd2 1464:f72c9c5aeaef
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

mercurial