我的问题是我应该评论如下:
/**
* Getter for {@link #auto_key}
* @return {@link #auto_key}
*/
public String getAuto_key() {
return auto_key;
}
/**
* Setter for {@link #auto_key}
* @param auto_key the {@link #auto_key} to set
*/
public void setAuto_key(String auto_key) {
this.auto_key = auto_key;
}
Run Code Online (Sandbox Code Playgroud)
基本上我想问一下,使用{@link}评论getter和setter方法是否正确?或者我应该使用正常评论而不使用{@link}?这种方式是不是java标准?