V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
chunjie
V2EX  ›  问与答

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

  •  
  •   chunjie · Jun 5, 2018 · 15606 views
    This topic created in 2893 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
        1
    yukiww233  
       Jun 6, 2018   ❤️ 2
    alt + enter -> add to custom tags
    whitev2
        2
    whitev2  
       Jun 6, 2018
    “@Description ”不是 javadoc 的 tag 吧?
    chunjie
        3
    chunjie  
    OP
       Jun 6, 2018
    @yukiww233 还真行了,谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1106 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 23:01 · PVG 07:01 · LAX 16:01 · JFK 19:01
    ♥ Do have faith in what you're doing.