How can I use “<” and “>” in javadoc without formatting?

前端 未结 8 1893
面向向阳花
面向向阳花 2020-12-02 13:56

If I write in a javadoc, it does not appear, because tags have special functions on formatting texts.

How can I show this chars in a

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 14:24

    Recent versions of JavaDoc support {@literal AC}; this outputs the content correctly (escaping the '<' and '>' in the generated HTML).

    See http://download.oracle.com/javase/1.5.0/docs/guide/javadoc/whatsnew-1.5.0.html

提交回复
热议问题