langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/InheritDocTaglet.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2017, 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 |
27 |
27 |
28 import javax.lang.model.element.Element; |
28 import javax.lang.model.element.Element; |
29 import javax.lang.model.element.ExecutableElement; |
29 import javax.lang.model.element.ExecutableElement; |
30 |
30 |
31 import com.sun.source.doctree.DocTree; |
31 import com.sun.source.doctree.DocTree; |
32 import jdk.javadoc.internal.doclets.toolkit.Configuration; |
32 import jdk.javadoc.internal.doclets.toolkit.BaseConfiguration; |
33 import jdk.javadoc.internal.doclets.toolkit.Content; |
33 import jdk.javadoc.internal.doclets.toolkit.Content; |
34 import jdk.javadoc.internal.doclets.toolkit.Messages; |
34 import jdk.javadoc.internal.doclets.toolkit.Messages; |
35 import jdk.javadoc.internal.doclets.toolkit.util.CommentHelper; |
35 import jdk.javadoc.internal.doclets.toolkit.util.CommentHelper; |
36 import jdk.javadoc.internal.doclets.toolkit.util.DocFinder; |
36 import jdk.javadoc.internal.doclets.toolkit.util.DocFinder; |
37 import jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Input; |
37 import jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Input; |
133 * @param isFirstSentence true if we only want to inherit the first sentence. |
133 * @param isFirstSentence true if we only want to inherit the first sentence. |
134 */ |
134 */ |
135 private Content retrieveInheritedDocumentation(TagletWriter writer, |
135 private Content retrieveInheritedDocumentation(TagletWriter writer, |
136 Element e, DocTree holderTag, boolean isFirstSentence) { |
136 Element e, DocTree holderTag, boolean isFirstSentence) { |
137 Content replacement = writer.getOutputInstance(); |
137 Content replacement = writer.getOutputInstance(); |
138 Configuration configuration = writer.configuration(); |
138 BaseConfiguration configuration = writer.configuration(); |
139 Messages messages = configuration.getMessages(); |
139 Messages messages = configuration.getMessages(); |
140 Utils utils = configuration.utils; |
140 Utils utils = configuration.utils; |
141 CommentHelper ch = utils.getCommentHelper(e); |
141 CommentHelper ch = utils.getCommentHelper(e); |
142 Taglet inheritableTaglet = holderTag == null |
142 Taglet inheritableTaglet = holderTag == null |
143 ? null |
143 ? null |