8189841: Error in alternate row coloring in package-summary files

Reviewed-by: bpatel, ksrini
This commit is contained in:
Jonathan Gibbons 2017-10-25 17:16:18 -07:00
parent 16b93f1b06
commit cf81232570
8 changed files with 337 additions and 1 deletions

View file

@ -292,11 +292,11 @@ public class PackageWriterImpl extends HtmlDocletWriter
Content tbody = new HtmlTree(HtmlTag.TBODY);
boolean altColor = false;
for (TypeElement klass : classes) {
altColor = !altColor;
if (!utils.isCoreClass(klass) ||
!configuration.isGeneratedDoc(klass)) {
continue;
}
altColor = !altColor;
Content classContent = getLink(new LinkInfoImpl(
configuration, LinkInfoImpl.Kind.PACKAGE, klass));
Content thClass = HtmlTree.TH_ROW_SCOPE(HtmlStyle.colFirst, classContent);