chunjie
V2EX  ›  问与答

怎么解决 idea 上提示的 wrong tag 警告?

  •  
  •   chunjie · Jun 5, 2018 · 16058 views
    This topic created in 3072 days ago, the information mentioned may be changed or developed.
    在 idea 的 setting 里设置了这个,
    /**
    * @Description
    * @Author pure
    * @Date ${DATE} ${TIME}
    */
    这样每创建一个 class 文件都会自动写上这些注释,但是 idea 总是对此发出警告提示,
    Wrong tag 'Description' less... (Ctrl+F1)

    This inspection points out the following javadoc comment flaws:

    - no javadoc where it is required
    - required tag is missing
    - invalid or incomplete tag
    - javadoc description is missing or incomplete
    想请教下怎么去除这些警告?
    3 replies  •  2018-06-06 11:58:37 +08:00
    yukiww233
    yukiww233
    Jun 6, 2018❤️2
    1
    alt + enter -> add to custom tags
    whitev2
    whitev2
    Jun 6, 2018
    2
    “@Description ”不是 javadoc 的 tag 吧?
    chunjie
    chunjie
    OP
    Jun 6, 2018
    3
    @yukiww233 还真行了,谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4980 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 08:59 · PVG 16:59 · LAX 00:59 · JFK 03:59
    ♥ Do have faith in what you're doing.