天天看點

怎麼解決 idea 上提示類注釋的 wrong tag 警告

在 idea 的 setting 裡設定了類注釋模闆,如下:

怎麼解決 idea 上提示類注釋的 wrong tag 警告

每建立一個 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 
           
怎麼解決 idea 上提示類注釋的 wrong tag 警告

alt + enter -> add to custom tags

怎麼解決 idea 上提示類注釋的 wrong tag 警告