我希望Eclipse根据先前为字段定义的注释自动为我的getter和setter方法生成Javadoc注释.我怎样才能做到这一点?
背景:我们公司的一项政策是评论每个方法和领域(即使它们具有不言自明的名称).因此,我必须通过描述字段并再次描述getter/setter来完成冗余工作.
例:
/**
* name of the dynamic strategy
*/
private String dynName;
/**
* get the name of the dynamic strategy
* @return
*/
public String getDynName() {
return dynName;
}
Run Code Online (Sandbox Code Playgroud)
在网上搜索显示我不是唯一一个有问题的人 - 但我找不到任何解决方案.我检查了http://jautodoc.sourceforge.net/,但似乎无法做到这一点.