How can you reference the annotation in the Javadoc?
How can you correctly reference the annotation as a code snippet in the Javadoc?
For example:
<code>
@Annotation public String field = "";
</code>
@Annotation is treated as an unrecognized Javadoc tag, not a piece of code.
+2
Yishai
source
to share
1 answer
IIRC,
<code>
@Annotation public String field = "";
</code>
Or, I suppose
{@code
@Annotation public String field = "";
}
+5
Tom Hawtin - tackline
source
to share