src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/FieldBuilder.java
changeset 54060 53a95878619f
parent 49879 601277b1d582
child 54596 86c1da00dd6a
equal deleted inserted replaced
54059:1bc8513104f2 54060:53a95878619f
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   135                 buildSignature(fieldDocTree);
   135                 buildSignature(fieldDocTree);
   136                 buildDeprecationInfo(fieldDocTree);
   136                 buildDeprecationInfo(fieldDocTree);
   137                 buildFieldComments(fieldDocTree);
   137                 buildFieldComments(fieldDocTree);
   138                 buildTagInfo(fieldDocTree);
   138                 buildTagInfo(fieldDocTree);
   139 
   139 
   140                 fieldDetailsTree.addContent(writer.getFieldDoc(
   140                 fieldDetailsTree.add(writer.getFieldDoc(
   141                         fieldDocTree, currentElement == lastElement));
   141                         fieldDocTree, currentElement == lastElement));
   142             }
   142             }
   143             memberDetailsTree.addContent(
   143             memberDetailsTree.add(
   144                     writer.getFieldDetails(fieldDetailsTree));
   144                     writer.getFieldDetails(fieldDetailsTree));
   145         }
   145         }
   146     }
   146     }
   147 
   147 
   148     /**
   148     /**
   149      * Build the signature.
   149      * Build the signature.
   150      *
   150      *
   151      * @param fieldDocTree the content tree to which the documentation will be added
   151      * @param fieldDocTree the content tree to which the documentation will be added
   152      */
   152      */
   153     protected void buildSignature(Content fieldDocTree) {
   153     protected void buildSignature(Content fieldDocTree) {
   154         fieldDocTree.addContent(writer.getSignature(currentElement));
   154         fieldDocTree.add(writer.getSignature(currentElement));
   155     }
   155     }
   156 
   156 
   157     /**
   157     /**
   158      * Build the deprecation information.
   158      * Build the deprecation information.
   159      *
   159      *