在 idea 的 setting 里设置了这个,
/**
* @Description
* @Author pure
* @Date
DATE
D
A
T
E
{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
消除警告的方法:
alt + enter -> add to custom tags