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";
}
Do you mean {@value #STATIC_FIELD}
?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With