Eclipse:抑制 RemoteException 上缺少 Javadoc 标记的警告
我已将 Eclipse 设置为生成有关缺少 Javadoc 标签的警告。但是,我想抑制针对 RMI 接口缺少 @throws RemoteException
标记的警告,因为这些是由我的接口声明中的 extends Remote
隐含的。
有没有办法通过 @SuppressWarnings (我对语法不太熟悉)或其他设置来做到这一点?
I have Eclipse set up to yield warnings about missing Javadoc tags. However, I would like to suppress warnings for missing @throws RemoteException
tags for my RMI interfaces, as these are implied by extends Remote
in my interface declaration.
Is there a way to do this via @SuppressWarnings
(I'm not that familiar with the syntax) or some other setting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
@SuppressWarnings("javadoc")
是答案,但它在 eclipse 3.6 中不起作用。 Eclipse 3.7 已修复。请参阅此处: Eclipse - @SuppressWarnings("javadoc") 不起作用
和此处: https://bugs.eclipse.org/bugs/show_bug.cgi?id= 179566
@SuppressWarnings("javadoc")
is the answer, but it does not work in eclipse 3.6. It is fixed for eclipse 3.7.see here: Eclipse - @SuppressWarnings("javadoc") does not work
and here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=179566
Eclipse - @SuppressWarnings("javadoc") 不起作用
这似乎讨论了这个问题你遇到了。我刚刚检查了答案中列出的错误,看起来这将在 Eclipse 3.7 中添加。
Eclipse - @SuppressWarnings("javadoc") does not work
This seems to discuss the issue you're running into. I just checked the bug listed in the answers, it looks like this is going to be added in Eclipse 3.7.