mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8239816: Make handling of module / package / types consistent
Reviewed-by: hannesw
This commit is contained in:
parent
b26516309a
commit
039cb65753
5 changed files with 17 additions and 45 deletions
|
@ -840,17 +840,11 @@ public class ModuleWriterImpl extends HtmlDocletWriter implements ModuleSummaryW
|
|||
addDeprecationInfo(tree);
|
||||
tree.add(MarkerComments.START_OF_MODULE_DESCRIPTION);
|
||||
addInlineComment(mdle, tree);
|
||||
addTagsInfo(mdle, tree);
|
||||
moduleContentTree.add(tree);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addModuleTags(Content moduleContentTree) {
|
||||
Content tree = HtmlTree.SECTION(HtmlStyle.moduleTags);
|
||||
addTagsInfo(mdle, tree);
|
||||
moduleContentTree.add(tree);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addModuleContent(Content moduleContentTree) {
|
||||
bodyContents.addMainContent(moduleContentTree);
|
||||
|
|
|
@ -231,14 +231,6 @@ public enum HtmlStyle {
|
|||
*/
|
||||
moduleDescription,
|
||||
|
||||
/**
|
||||
* The class of the {@code dl} element used to present the block tags in the documentation
|
||||
* comment for a module element.
|
||||
* Additional (derived) information, such as implementation or inheritance details, may
|
||||
* also appear in this element.
|
||||
*/
|
||||
moduleTags,
|
||||
|
||||
/**
|
||||
* The class of the element used to present the documentation comment for package element.
|
||||
* The content of the block tags will be in a nested element with class {@link #notes}.
|
||||
|
|
|
@ -76,15 +76,6 @@ public interface ModuleSummaryWriter {
|
|||
*/
|
||||
void addModuleDescription(Content moduleContentTree);
|
||||
|
||||
/**
|
||||
* Adds the tag information from the "module-info.java" file to the documentation
|
||||
* tree.
|
||||
*
|
||||
* @param moduleContentTree the content tree to which the module tags will
|
||||
* be added
|
||||
*/
|
||||
void addModuleTags(Content moduleContentTree);
|
||||
|
||||
/**
|
||||
* Adds the summary of modules to the list of summaries.
|
||||
*
|
||||
|
|
|
@ -122,7 +122,6 @@ public class ModuleSummaryBuilder extends AbstractBuilder {
|
|||
Content moduleContentTree = moduleWriter.getContentHeader();
|
||||
|
||||
buildModuleDescription(moduleContentTree);
|
||||
buildModuleTags(moduleContentTree);
|
||||
buildSummary(moduleContentTree);
|
||||
|
||||
moduleWriter.addModuleContent(moduleContentTree);
|
||||
|
@ -183,15 +182,4 @@ public class ModuleSummaryBuilder extends AbstractBuilder {
|
|||
moduleWriter.addModuleDescription(moduleContentTree);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the tags of the summary.
|
||||
*
|
||||
* @param moduleContentTree the tree to which the module tags will be added
|
||||
*/
|
||||
protected void buildModuleTags(Content moduleContentTree) {
|
||||
if (!options.noComment()) {
|
||||
moduleWriter.addModuleTags(moduleContentTree);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue