langtools/src/share/classes/com/sun/tools/doclets/formats/html/PropertyWriterImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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 |
124 */ |
124 */ |
125 public void addComments(MethodDoc property, Content propertyDocTree) { |
125 public void addComments(MethodDoc property, Content propertyDocTree) { |
126 ClassDoc holder = property.containingClass(); |
126 ClassDoc holder = property.containingClass(); |
127 if (property.inlineTags().length > 0) { |
127 if (property.inlineTags().length > 0) { |
128 if (holder.equals(classdoc) || |
128 if (holder.equals(classdoc) || |
129 (! (holder.isPublic() || Util.isLinkable(holder, configuration)))) { |
129 (! (holder.isPublic() || utils.isLinkable(holder, configuration)))) { |
130 writer.addInlineComment(property, propertyDocTree); |
130 writer.addInlineComment(property, propertyDocTree); |
131 } else { |
131 } else { |
132 Content link = |
132 Content link = |
133 writer.getDocLink(LinkInfoImpl.Kind.PROPERTY_DOC_COPY, |
133 writer.getDocLink(LinkInfoImpl.Kind.PROPERTY_DOC_COPY, |
134 holder, property, |
134 holder, property, |