How to create custom javadoc tags?

前端 未结 4 640
借酒劲吻你
借酒劲吻你 2020-12-01 06:14

How do I create custom javadoc tags such as @pre / @post? I found some links that explain it but I haven\'t had luck with them. These are some of the links:

http://w

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-01 06:52

    Well what i did is not the best solution but is readable:

      /** 

    Pre:

      True
    *

    Post:

      The x is pushed onto the top of the stack, * and the rest of the stack remains unchanged.
    * * @param x Indicates the current node */ public void push(int x){ ... }

    Till a proper answer is found, hope it helps!

提交回复
热议问题