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

changeset 1464
f72c9c5aeaef
parent 1443
cfde9737131e
child 2525
2eb010b6cb22
equal deleted inserted replaced
1463:67b01d295cd2 1464:f72c9c5aeaef
162 /** 162 /**
163 * Get the annotations of this program element. 163 * Get the annotations of this program element.
164 * Return an empty array if there are none. 164 * Return an empty array if there are none.
165 */ 165 */
166 public AnnotationDesc[] annotations() { 166 public AnnotationDesc[] annotations() {
167 AnnotationDesc res[] = new AnnotationDesc[sym.getAnnotationMirrors().length()]; 167 AnnotationDesc res[] = new AnnotationDesc[sym.getRawAttributes().length()];
168 int i = 0; 168 int i = 0;
169 for (Attribute.Compound a : sym.getAnnotationMirrors()) { 169 for (Attribute.Compound a : sym.getRawAttributes()) {
170 res[i++] = new AnnotationDescImpl(env, a); 170 res[i++] = new AnnotationDescImpl(env, a);
171 } 171 }
172 return res; 172 return res;
173 } 173 }
174 174

mercurial