langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlSerialFieldWriter.java
changeset 41452 ddaef4bba083
parent 35426 374342e56a56
equal deleted inserted replaced
41451:a847c7aa25a7 41452:ddaef4bba083
   157      *
   157      *
   158      * @param field the field to document.
   158      * @param field the field to document.
   159      * @param contentTree the tree to which the deprecated info will be added
   159      * @param contentTree the tree to which the deprecated info will be added
   160      */
   160      */
   161     public void addMemberDescription(VariableElement field, Content contentTree) {
   161     public void addMemberDescription(VariableElement field, Content contentTree) {
   162         if (!utils.getBody(field).isEmpty()) {
   162         if (!utils.getFullBody(field).isEmpty()) {
   163             writer.addInlineComment(field, contentTree);
   163             writer.addInlineComment(field, contentTree);
   164         }
   164         }
   165         List<? extends DocTree> tags = utils.getBlockTags(field, DocTree.Kind.SERIAL);
   165         List<? extends DocTree> tags = utils.getBlockTags(field, DocTree.Kind.SERIAL);
   166         if (!tags.isEmpty()) {
   166         if (!tags.isEmpty()) {
   167             writer.addInlineComment(field, tags.get(0), contentTree);
   167             writer.addInlineComment(field, tags.get(0), contentTree);
   208      * @param field the field to check overview details for.
   208      * @param field the field to check overview details for.
   209      * @return true if overview details need to be printed
   209      * @return true if overview details need to be printed
   210      */
   210      */
   211     public boolean shouldPrintOverview(VariableElement field) {
   211     public boolean shouldPrintOverview(VariableElement field) {
   212         if (!configuration.nocomment) {
   212         if (!configuration.nocomment) {
   213             if(!utils.getBody(field).isEmpty() ||
   213             if(!utils.getFullBody(field).isEmpty() ||
   214                     writer.hasSerializationOverviewTags(field))
   214                     writer.hasSerializationOverviewTags(field))
   215                 return true;
   215                 return true;
   216         }
   216         }
   217         if (utils.isDeprecated(field))
   217         if (utils.isDeprecated(field))
   218             return true;
   218             return true;