langtools/src/share/classes/com/sun/tools/javadoc/ProgramElementDocImpl.java
changeset 14961 e731935052af
parent 14802 969e90f68ac5
equal deleted inserted replaced
14960:ea7606a9683e 14961:e731935052af
   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