idea java 类开发中注释@Author @Description 注释报警告

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/eases_stone/article/details/82178404

在 idea 的 setting 里设置了这个,
/**
* @Description
* @Author pure
* @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

猜你喜欢

转载自blog.csdn.net/eases_stone/article/details/82178404