src/share/classes/com/sun/tools/doclets/internal/toolkit/util/ClassUseMapper.java

changeset 1985
0e6577980181
parent 1359
25e14ad23cef
child 2525
2eb010b6cb22
equal deleted inserted replaced
1984:189942cdf585 1985:0e6577980181
1 /* 1 /*
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
450 annotations = ((PackageDoc) doc).annotations(); 450 annotations = ((PackageDoc) doc).annotations();
451 isPackage = true; 451 isPackage = true;
452 } else if (doc instanceof Parameter) { 452 } else if (doc instanceof Parameter) {
453 annotations = ((Parameter) doc).annotations(); 453 annotations = ((Parameter) doc).annotations();
454 } else { 454 } else {
455 throw new DocletAbortException(); 455 throw new DocletAbortException("should not happen");
456 } 456 }
457 for (int i = 0; i < annotations.length; i++) { 457 for (int i = 0; i < annotations.length; i++) {
458 AnnotationTypeDoc annotationDoc = annotations[i].annotationType(); 458 AnnotationTypeDoc annotationDoc = annotations[i].annotationType();
459 if (isPackage) 459 if (isPackage)
460 refList(map, annotationDoc).add(holder); 460 refList(map, annotationDoc).add(holder);

mercurial