相关疑难解决方法(0)

codestyle; 在注释之前或之后放入javadoc?

我知道这不是最重要的问题,但我只是意识到我可以在注释之前或之后放置javadoc注释块.我们希望采用什么作为编码标准?

/**
 * This is a javadoc comment before the annotation 
 */
@Component
public class MyClass {

    @Autowired
    /**
     * This is a javadoc comment after the annotation
     */
    private MyOtherClass other;
}
Run Code Online (Sandbox Code Playgroud)

java annotations javadoc coding-style code-documentation

176
推荐指数
4
解决办法
2万
查看次数