【发布时间】:2012-03-03 07:45:20
【问题描述】:
我有一个接口 A,它有方法 x、y 和 z。我是这样评论课程的:
/**
*
* A.java
* Interface class that has the following methods.
*
* @author MyName
* @since mm-dd-yyyy
*/
public interface A {
//method description for x
void x();
//method description for y
void y();
//method description for z
void z();
}
这是正确的还是我应该在 CLASS COMMENTS 中添加其他内容?
【问题讨论】:
-
你为什么不接受 Jon Skeet?
标签: java interface comments javadoc