How to quote “*/” in JavaDocs

前端 未结 6 1749
甜味超标
甜味超标 2020-11-30 09:23

I have a need to include */ in my JavaDoc comment. The problem is that this is also the same sequence for closing a comment. What the proper way to quote/escape

6条回答
  •  有刺的猬
    2020-11-30 10:18

    Another way I stumbled upon, just for completeness: add some HTML markup which doesn't alter the output between the * and /.

      /**
       * */
       */
    

    Compared to the HTML escape solution, this seems something of an ugly hack, but it also yields the right result in HTML output.

提交回复
热议问题