langtools/src/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.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 |
128 */ |
128 */ |
129 public void addComments(FieldDoc field, Content fieldDocTree) { |
129 public void addComments(FieldDoc field, Content fieldDocTree) { |
130 ClassDoc holder = field.containingClass(); |
130 ClassDoc holder = field.containingClass(); |
131 if (field.inlineTags().length > 0) { |
131 if (field.inlineTags().length > 0) { |
132 if (holder.equals(classdoc) || |
132 if (holder.equals(classdoc) || |
133 (! (holder.isPublic() || Util.isLinkable(holder, configuration)))) { |
133 (! (holder.isPublic() || utils.isLinkable(holder, configuration)))) { |
134 writer.addInlineComment(field, fieldDocTree); |
134 writer.addInlineComment(field, fieldDocTree); |
135 } else { |
135 } else { |
136 Content link = |
136 Content link = |
137 writer.getDocLink(LinkInfoImpl.Kind.FIELD_DOC_COPY, |
137 writer.getDocLink(LinkInfoImpl.Kind.FIELD_DOC_COPY, |
138 holder, field, |
138 holder, field, |