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

changeset 1464
f72c9c5aeaef
parent 1443
cfde9737131e
child 2525
2eb010b6cb22
     1.1 --- a/src/share/classes/com/sun/tools/javadoc/ProgramElementDocImpl.java	Wed Dec 19 11:29:56 2012 +0000
     1.2 +++ b/src/share/classes/com/sun/tools/javadoc/ProgramElementDocImpl.java	Sun Dec 16 11:09:36 2012 +0100
     1.3 @@ -164,9 +164,9 @@
     1.4       * Return an empty array if there are none.
     1.5       */
     1.6      public AnnotationDesc[] annotations() {
     1.7 -        AnnotationDesc res[] = new AnnotationDesc[sym.getAnnotationMirrors().length()];
     1.8 +        AnnotationDesc res[] = new AnnotationDesc[sym.getRawAttributes().length()];
     1.9          int i = 0;
    1.10 -        for (Attribute.Compound a : sym.getAnnotationMirrors()) {
    1.11 +        for (Attribute.Compound a : sym.getRawAttributes()) {
    1.12              res[i++] = new AnnotationDescImpl(env, a);
    1.13          }
    1.14          return res;

mercurial