这是代码:
/**
* some text.
*/
public class Foo {
/**
* Some comment...
*/
public enum Bar {
/**
* some text.
*/
ABC,
/**
* some text.
*/
CDE;
};
}
Run Code Online (Sandbox Code Playgroud)
Checkstyle 说Missing a Javadoc comment.两次(line withABC和 line with CDE)。它是关于什么的?我应该在哪里添加评论?JavaDoc 工作得很好。
神奇的静态解决了这个问题:
/**
* some text.
*/
public class Foo {
/**
* Some comment...
*/
public static enum Bar {
/**
...
Run Code Online (Sandbox Code Playgroud)