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
java annotations javadoc


source to share


1 answer


IIRC,

<code>
  &#64;Annotation public String field = "";
</code>

      



Or, I suppose

{@code 
  @Annotation public String field = "";
}

      

+5


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics