我已经开始在评论和文档等中看到类方法引用,如下所示:
MyClass#myMethod
即在类和方法之间使用#.这是某种编码标准/惯例吗?
解决方法:
官方指南见How to Write Doc Comments for the Javadoc Tool.
哪里:
@see #field
@see #Constructor(Type, Type...)
@see #Constructor(Type id, Type id...)
@see #method(Type, Type,...)
@see #method(Type id, Type, id...)
@see Class
@see Class#field
@see Class#Constructor(Type, Type...)
@see Class#Constructor(Type id, Type id)
@see Class#method(Type, Type,...)
@see Class#method(Type id, Type id,...)
@see package.Class
@see package.Class#field
@see package.Class#Constructor(Type, Type...)
@see package.Class#Constructor(Type id, Type id)
@see package.Class#method(Type, Type,...)
@see package.Class#method(Type id, Type, id)
@see package
要查看@see和@link之间的区别,请查看Another asked Question