src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/FieldWriterImpl.java
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/FieldWriterImpl.java Thu Oct 19 11:45:23 2017 -0700
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/FieldWriterImpl.java Thu Oct 19 20:27:47 2017 -0700
@@ -1,5 +1,5 @@
/*
- * 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
@@ -243,9 +243,16 @@
public void addInheritedSummaryLabel(TypeElement typeElement, Content inheritedTree) {
Content classLink = writer.getPreQualifiedClassLink(
LinkInfoImpl.Kind.MEMBER, typeElement, false);
- Content label = new StringContent(utils.isClass(typeElement)
- ? configuration.getText("doclet.Fields_Inherited_From_Class")
- : configuration.getText("doclet.Fields_Inherited_From_Interface"));
+ Content label;
+ if (configuration.summarizeOverriddenMethods) {
+ label = new StringContent(utils.isClass(typeElement)
+ ? configuration.getText("doclet.Fields_Declared_In_Class")
+ : configuration.getText("doclet.Fields_Declared_In_Interface"));
+ } else {
+ label = new StringContent(utils.isClass(typeElement)
+ ? configuration.getText("doclet.Fields_Inherited_From_Class")
+ : configuration.getText("doclet.Fields_Inherited_From_Interface"));
+ }
Content labelHeading = HtmlTree.HEADING(HtmlConstants.INHERITED_SUMMARY_HEADING,
label);
labelHeading.addContent(Contents.SPACE);