equal
deleted
inserted
replaced
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 |