Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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";

}
like image 245
Simon Avatar asked Oct 23 '11 20:10

Simon


1 Answers

Do you mean {@value #STATIC_FIELD}?

like image 195
user207421 Avatar answered Nov 11 '22 10:11

user207421