< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/NestedClassWriterImpl.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -148,13 +148,20 @@
      */
     @Override
     public void addInheritedSummaryLabel(TypeElement typeElement, Content inheritedTree) {
         Content classLink = writer.getPreQualifiedClassLink(
                 LinkInfoImpl.Kind.MEMBER, typeElement, false);
-        Content label = new StringContent(utils.isInterface(typeElement)
-                ? configuration.getText("doclet.Nested_Classes_Interface_Inherited_From_Interface")
+        Content label;
+        if (configuration.summarizeOverriddenMethods) {
+            label = new StringContent(utils.isInterface(typeElement)
+                    ? configuration.getText("doclet.Nested_Classes_Interfaces_Declared_In_Interface")
+                    : configuration.getText("doclet.Nested_Classes_Interfaces_Declared_In_Class"));
+        } else {
+            label = new StringContent(utils.isInterface(typeElement)
+                    ? configuration.getText("doclet.Nested_Classes_Interfaces_Inherited_From_Interface")
                 : configuration.getText("doclet.Nested_Classes_Interfaces_Inherited_From_Class"));
+        }
         Content labelHeading = HtmlTree.HEADING(HtmlConstants.INHERITED_SUMMARY_HEADING,
                 label);
         labelHeading.addContent(Contents.SPACE);
         labelHeading.addContent(classLink);
         inheritedTree.addContent(labelHeading);
< prev index next >