How can I reference the value of a final static field in the class?

JavaDocumentationJavadoc

Java Problem Overview


Using JavaDoc, how can I reference the value of a final static field in the class?

I want the ??? in this example replaced by the value of the field STATIC_FIELD.

/**
 * This is a simple class with only one static field with the value ???.
 */
public class Simple {

    /**
     * We can reference the value with {@value} here, 
     * but how do we reference it in the class JavaDoc?
     */
    public static final String STATIC_FIELD = "simple static field";

}

Java Solutions


Solution 1 - Java

Do you mean {@value #STATIC_FIELD}?

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSimonView Question on Stackoverflow
Solution 1 - Javauser207421View Answer on Stackoverflow