langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2014, 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 |
259 */ |
259 */ |
260 public void addAnnotationTypeDeprecationInfo(Content annotationInfoTree) { |
260 public void addAnnotationTypeDeprecationInfo(Content annotationInfoTree) { |
261 Content hr = new HtmlTree(HtmlTag.HR); |
261 Content hr = new HtmlTree(HtmlTag.HR); |
262 annotationInfoTree.addContent(hr); |
262 annotationInfoTree.addContent(hr); |
263 Tag[] deprs = annotationType.tags("deprecated"); |
263 Tag[] deprs = annotationType.tags("deprecated"); |
264 if (Util.isDeprecated(annotationType)) { |
264 if (utils.isDeprecated(annotationType)) { |
265 Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); |
265 Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); |
266 Content div = HtmlTree.DIV(HtmlStyle.block, deprLabel); |
266 Content div = HtmlTree.DIV(HtmlStyle.block, deprLabel); |
267 if (deprs.length > 0) { |
267 if (deprs.length > 0) { |
268 Tag[] commentTags = deprs[0].inlineTags(); |
268 Tag[] commentTags = deprs[0].inlineTags(); |
269 if (commentTags.length > 0) { |
269 if (commentTags.length > 0) { |