--- old/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AbstractMemberWriter.java 2020-01-21 10:50:47.147579914 -0800 +++ new/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AbstractMemberWriter.java 2020-01-21 10:50:46.827565774 -0800 @@ -73,6 +73,7 @@ public abstract class AbstractMemberWriter implements MemberSummaryWriter { protected final HtmlConfiguration configuration; + protected final HtmlOptions options; protected final Utils utils; protected final SubWriterHolderWriter writer; protected final Contents contents; @@ -80,14 +81,11 @@ protected final Links links; protected final TypeElement typeElement; - public final boolean nodepr; - - protected boolean printedSummaryHeader = false; public AbstractMemberWriter(SubWriterHolderWriter writer, TypeElement typeElement) { this.configuration = writer.configuration; + this.options = configuration.getOptions(); this.writer = writer; - this.nodepr = configuration.nodeprecated; this.typeElement = typeElement; this.utils = configuration.utils; this.contents = configuration.contents; @@ -380,7 +378,7 @@ } protected void serialWarning(Element e, String key, String a1, String a2) { - if (configuration.serialwarn) { + if (options.serialWarn) { configuration.messages.warning(e, key, a1, a2); } } @@ -598,7 +596,7 @@ // Name HtmlTree nameSpan = new HtmlTree(HtmlTag.SPAN); nameSpan.setStyle(HtmlStyle.memberName); - if (configuration.linksource) { + if (options.linkSource) { Content name = new StringContent(name(element)); writer.addSrcLink(element, name, nameSpan); } else {