src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ModuleWriterImpl.java
changeset 48437 dd3b97564ed7
parent 48325 e5cdedd37b78
child 48654 36f58bd6269f
equal deleted inserted replaced
48429:e9a564028f2f 48437:dd3b97564ed7
   818             }
   818             }
   819             typeLinkContent = getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.PACKAGE, t));
   819             typeLinkContent = getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.PACKAGE, t));
   820             Content summary = new ContentBuilder();
   820             Content summary = new ContentBuilder();
   821             if (display(usesTrees)) {
   821             if (display(usesTrees)) {
   822                 description = usesTrees.get(t);
   822                 description = usesTrees.get(t);
   823                 if (description != null) {
   823                 if (description != null && !description.isEmpty()) {
   824                     summary.addContent(description);
   824                     summary.addContent(HtmlTree.DIV(HtmlStyle.block, description));
   825                 }
   825                 } else {
   826             }
   826                     addSummaryComment(t, summary);
   827             addSummaryComment(t, summary);
   827                 }
       
   828             } else {
       
   829                 summary.addContent(Contents.SPACE);
       
   830             }
   828             table.addRow(typeLinkContent, summary);
   831             table.addRow(typeLinkContent, summary);
   829         }
   832         }
   830     }
   833     }
   831 
   834 
   832     /**
   835     /**
   845             implSet = entry.getValue();
   848             implSet = entry.getValue();
   846             Content srvLinkContent = getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.PACKAGE, srv));
   849             Content srvLinkContent = getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.PACKAGE, srv));
   847             Content desc = new ContentBuilder();
   850             Content desc = new ContentBuilder();
   848             if (display(providesTrees)) {
   851             if (display(providesTrees)) {
   849                 description = providesTrees.get(srv);
   852                 description = providesTrees.get(srv);
   850                 if (description != null) {
   853                 desc.addContent((description != null && !description.isEmpty())
   851                     desc.addContent(description);
   854                         ? HtmlTree.DIV(HtmlStyle.block, description)
   852                 }
   855                         : Contents.SPACE);
   853             }
   856             } else {
   854             addSummaryComment(srv, desc);
   857                 desc.addContent(Contents.SPACE);
       
   858                 }
   855             // Only display the implementation details in the "all" mode.
   859             // Only display the implementation details in the "all" mode.
   856             if (moduleMode == ModuleMode.ALL && !implSet.isEmpty()) {
   860             if (moduleMode == ModuleMode.ALL && !implSet.isEmpty()) {
   857                 desc.addContent(new HtmlTree(HtmlTag.BR));
   861                 desc.addContent(new HtmlTree(HtmlTag.BR));
   858                 desc.addContent("(");
   862                 desc.addContent("(");
   859                 HtmlTree implSpan = HtmlTree.SPAN(HtmlStyle.implementationLabel, contents.implementation);
   863                 HtmlTree implSpan = HtmlTree.SPAN(HtmlStyle.implementationLabel, contents.implementation);