langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/ValueTaglet.java
changeset 45417 f7479ee8de69
parent 40303 96a1226aca18
equal deleted inserted replaced
45416:0d8bb33bdfa7 45417:f7479ee8de69
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2017, 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
    30 import javax.lang.model.element.TypeElement;
    30 import javax.lang.model.element.TypeElement;
    31 import javax.lang.model.element.VariableElement;
    31 import javax.lang.model.element.VariableElement;
    32 import javax.lang.model.util.Elements;
    32 import javax.lang.model.util.Elements;
    33 
    33 
    34 import com.sun.source.doctree.DocTree;
    34 import com.sun.source.doctree.DocTree;
    35 import jdk.javadoc.internal.doclets.toolkit.Configuration;
    35 import jdk.javadoc.internal.doclets.toolkit.BaseConfiguration;
    36 import jdk.javadoc.internal.doclets.toolkit.Content;
    36 import jdk.javadoc.internal.doclets.toolkit.Content;
    37 import jdk.javadoc.internal.doclets.toolkit.Messages;
    37 import jdk.javadoc.internal.doclets.toolkit.Messages;
    38 import jdk.javadoc.internal.doclets.toolkit.util.CommentHelper;
    38 import jdk.javadoc.internal.doclets.toolkit.util.CommentHelper;
    39 import jdk.javadoc.internal.doclets.toolkit.util.Utils;
    39 import jdk.javadoc.internal.doclets.toolkit.util.Utils;
    40 
    40 
   131      *
   131      *
   132      * @return the corresponding VariableElement. If the name is null or empty string,
   132      * @return the corresponding VariableElement. If the name is null or empty string,
   133      * return field that the value tag was used in. Return null if the name is null
   133      * return field that the value tag was used in. Return null if the name is null
   134      * or empty string and if the value tag is not used on a field.
   134      * or empty string and if the value tag is not used on a field.
   135      */
   135      */
   136     private VariableElement getVariableElement(Element holder, Configuration config, DocTree tag) {
   136     private VariableElement getVariableElement(Element holder, BaseConfiguration config, DocTree tag) {
   137         Utils utils = config.utils;
   137         Utils utils = config.utils;
   138         CommentHelper ch = utils.getCommentHelper(holder);
   138         CommentHelper ch = utils.getCommentHelper(holder);
   139         String signature = ch.getReferencedSignature(tag);
   139         String signature = ch.getReferencedSignature(tag);
   140 
   140 
   141         if (signature == null) { // no reference
   141         if (signature == null) { // no reference