@param javadoc class
@param javadoc on class
我的 eclipse 具有以下代码模板 -> 评论 -> 类型:
/**
* @author ${user}
*
* ${tags}
*/
当我有 class
public class MyProtocol<T extends ProtocolContext> extends Protocol<ExtendProtocolContext> {
当我在 class 添加评论时
/**
* @author user
*
* @param <T>
*/
class中找到@param
@param (methods and constructors only)
在方法上
* @param text the text of the tool tip
*/
public void setToolTipText(String text) {
@param
也应该存在于 classes 上吗?如果不是,是 Eclipse 问题吗?
据此:
https://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/javadoc.html#@param
它也应该用于 类:
/**
* @param <E> Type of element stored in a list
*/
public interface List<E> extends Collection<E> {
}
最新文档中也是这样:
https://docs.oracle.com/en/java/javase/11/docs/specs/doc-comment-spec.html
我的 eclipse 具有以下代码模板 -> 评论 -> 类型:
/**
* @author ${user}
*
* ${tags}
*/
当我有 class
public class MyProtocol<T extends ProtocolContext> extends Protocol<ExtendProtocolContext> {
当我在 class 添加评论时
/**
* @author user
*
* @param <T>
*/
class中找到@param
@param (methods and constructors only)
在方法上
* @param text the text of the tool tip */ public void setToolTipText(String text) {
@param
也应该存在于 classes 上吗?如果不是,是 Eclipse 问题吗?
据此:
https://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/javadoc.html#@param
它也应该用于 类:
/**
* @param <E> Type of element stored in a list
*/
public interface List<E> extends Collection<E> {
}
最新文档中也是这样:
https://docs.oracle.com/en/java/javase/11/docs/specs/doc-comment-spec.html