< prev index next >

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

Print this page

        

@@ -71,10 +71,11 @@
  *  deletion without notice.</b>
  */
 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;
     protected final Resources resources;
     protected final Links links;

@@ -84,12 +85,13 @@
 
     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.nodepr = options.noDeprecated;
         this.typeElement = typeElement;
         this.utils = configuration.utils;
         this.contents = configuration.contents;
         this.resources = configuration.resources;
         this.links = writer.links;

@@ -378,11 +380,11 @@
             contentTree.add(useTable.toContent());
         }
     }
 
     protected void serialWarning(Element e, String key, String a1, String a2) {
-        if (configuration.serialwarn) {
+        if (configuration.getOptions().serialWarn) {
             configuration.messages.warning(e, key, a1, a2);
         }
     }
 
     /**

@@ -596,11 +598,11 @@
             }
 
             // Name
             HtmlTree nameSpan = new HtmlTree(HtmlTag.SPAN);
             nameSpan.setStyle(HtmlStyle.memberName);
-            if (configuration.linksource) {
+            if (configuration.getOptions().linkSource) {
                 Content name = new StringContent(name(element));
                 writer.addSrcLink(element, name, nameSpan);
             } else {
                 nameSpan.add(name(element));
             }
< prev index next >