Java 文档评论未完全显示
Java doc comment not showing fully
所以这是我的一个 类 的一个片段,带有 java 文档评论 btu 当我称之为 java 文档没有完全显示只有第一个参数显示其余部分不存在为什么?我究竟做错了什么?我需要正确格式化吗?
/**
* @param String timestamp
* @param int empire
* @param int federation
* @param int independent
* @param int alliance
*/
public ReputationEvent(String timestamp, int empire, int federation, int independent, int alliance) {
super(timestamp);
this.empire = empire;
this.federation = federation;
this.independent = independent;
this.alliance = alliance;
}
Calling Class to create new instance of it, not showing the full java doc comment
切换@param 的顺序。通常你不写变量的类型。
/**
* <A short description of your method / class / whatever>
*
* @param <name of the variable> <describe your variable>
*/
示例:
/**
* Print a number on the screen.
*
* @param number The number that will be print on the screen.
*/
语法是
@param <name of parameter> <description>
如果您从示例生成 javadoc,则会出现以下错误:
error: @param name not found* @param int federation
因为 "int" 不是参数的预期名称,即 "federation"。
所以这是我的一个 类 的一个片段,带有 java 文档评论 btu 当我称之为 java 文档没有完全显示只有第一个参数显示其余部分不存在为什么?我究竟做错了什么?我需要正确格式化吗?
/**
* @param String timestamp
* @param int empire
* @param int federation
* @param int independent
* @param int alliance
*/
public ReputationEvent(String timestamp, int empire, int federation, int independent, int alliance) {
super(timestamp);
this.empire = empire;
this.federation = federation;
this.independent = independent;
this.alliance = alliance;
}
Calling Class to create new instance of it, not showing the full java doc comment
切换@param 的顺序。通常你不写变量的类型。
/**
* <A short description of your method / class / whatever>
*
* @param <name of the variable> <describe your variable>
*/
示例:
/**
* Print a number on the screen.
*
* @param number The number that will be print on the screen.
*/
语法是
@param <name of parameter> <description>
如果您从示例生成 javadoc,则会出现以下错误:
error: @param name not found* @param int federation
因为 "int" 不是参数的预期名称,即 "federation"。