src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AbstractPackageIndexWriter.java
changeset 47447 9887d1bc3e9c
parent 47216 71c04702a3d5
child 47846 4e78aba768f0
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AbstractPackageIndexWriter.java	Wed Oct 25 10:40:45 2017 -0700
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AbstractPackageIndexWriter.java	Wed Oct 25 12:29:00 2017 -0700
@@ -94,13 +94,9 @@
     /**
      * Adds the packages list to the documentation tree.
      *
-     * @param packages a collection of packagedoc objects
-     * @param text caption for the table
-     * @param tableSummary summary for the table
      * @param body the document tree to which the packages list will be added
      */
-    protected abstract void addPackagesList(Collection<PackageElement> packages, String text,
-            String tableSummary, Content body);
+    protected abstract void addPackagesList(Content body);
 
     /**
      * Generate and prints the contents in the package index file. Call appropriate
@@ -136,23 +132,16 @@
      * @param body the document tree to which the index will be added
      */
     protected void addIndex(Content body) {
-        addIndexContents(packages, "doclet.Package_Summary",
-                configuration.getText("doclet.Member_Table_Summary",
-                configuration.getText("doclet.Package_Summary"),
-                configuration.getText("doclet.packages")), body);
+        addIndexContents(body);
     }
 
     /**
      * Adds package index contents. Call appropriate methods from
      * the sub-classes. Adds it to the body HtmlTree
      *
-     * @param packages a collection of packages to be documented
-     * @param text string which will be used as the heading
-     * @param tableSummary summary for the table
      * @param body the document tree to which the index contents will be added
      */
-    protected void addIndexContents(Collection<PackageElement> packages, String text,
-            String tableSummary, Content body) {
+    protected void addIndexContents(Content body) {
         if (!packages.isEmpty()) {
             HtmlTree htmlTree = (configuration.allowTag(HtmlTag.NAV))
                     ? HtmlTree.NAV()
@@ -165,7 +154,7 @@
             }
             htmlTree.addContent(ul);
             body.addContent(htmlTree);
-            addPackagesList(packages, text, tableSummary, body);
+            addPackagesList(body);
         }
     }