V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
chunjie
V2EX  ›  问与答

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

  •  
  •   chunjie · 2018-06-05 23:48:53 +08:00 · 14927 次点击
    这是一个创建于 2153 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在 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 条回复    2018-06-06 11:58:37 +08:00
    yukiww233
        1
    yukiww233  
       2018-06-06 09:36:21 +08:00   ❤️ 2
    alt + enter -> add to custom tags
    whitev2
        2
    whitev2  
       2018-06-06 09:40:05 +08:00
    “@Description ”不是 javadoc 的 tag 吧?
    chunjie
        3
    chunjie  
    OP
       2018-06-06 11:58:37 +08:00
    @yukiww233 还真行了,谢谢!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2749 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:24 · PVG 23:24 · LAX 08:24 · JFK 11:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.