How to create multiple levels of indentation in Javadoc?

后端 未结 3 1916
陌清茗
陌清茗 2021-02-01 11:43

Suppose, that as part of documenting your code (Javadoc) you want to indicate that the relationships between elements using deep indentation.

How can I create a nested

3条回答
  •  滥情空心
    2021-02-01 12:16

    The correct way is as follows:

    /**
     * 
      *
    • some element *
      • *
      • some other element *
        • *
        • yet some other element *
        *
      *
    */

    Although JavaDoc borrows from HTML, it isn't HTML, and you should omit the

  • tags, just as you should omit

    tags.

提交回复
热议问题