javadoc文档Dangling Javadoc comment less... (Ctrl+F1
Inspection info: Reports dangling Javadoc comments. Javadoc comment are dangling if they don’t belong to any class, method or field. For example a Javadoc comment in between method declarations that have their own javadoc comments)
出现警示Reports dangling Javadoc comments. Javadoc comment are dangling if they don’t belong to any class, method or field. For example a Javadoc comment in between method declarations that have their own javadoc comments
简单的翻译过来就是如下
报告悬空Javadoc注释。如果Javadoc注释不属于任何类、方法或字段,那么它们将悬空。例如,在方法声明之间的Javadoc注释,它们有自己的Javadoc注释
解决方式
@ApiModel
/**
* Description of the class goes here.
* 这种写法 会有这个异常
* @author WN
*/
public class Test{
}
javadoc 注释 必须放在 所有注解之前 也就是:
/**
* Description of the class goes here.
* 卸载注解之上 就ok
* @author WN
*/
@ApiModel
public class Test{
}
这篇博客讨论了在Java代码中遇到的'Reports dangling Javadoc comments'警告,指出当Javadoc评论不属于任何类、方法或字段时,就会出现这种情况。例如,在具有各自Javadoc注释的方法声明之间的注释。文章提供了问题的简单翻译和解决方案。
467

被折叠的 条评论
为什么被折叠?



