在我的 Eclipse Indigo 中,只有 @Deprecated
有效,但 @deprecated
在评论中无效,知道吗?
例如
// @deprecated <-- not work
@Deprecated <-- work
public String getName()
{
return name;
}
最佳答案
@Deprecated 是一个标记接口(interface),而 deprecated 不是。 @deprecated是一个 Javadoc 标签。
关于java - Eclipse @deprecated 不工作,但@Deprecated 工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11599604/