Eclipse-@SuppressWarnings(“ javadoc”)不起作用 [英] Eclipse - @SuppressWarnings("javadoc") does not work

查看:163
本文介绍了Eclipse-@SuppressWarnings(“ javadoc”)不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Eclipse配置为在缺少javadoc注释和公共元素标签时显示警告。为了使我的代码有据可查,这对我来说非常有用。

I have my Eclipse configured to show warnings on missing javadoc comments and tags for public elements. That comes very usefull for me in order to keep my code well documented.

但是有时我有一类,其中有几个常量描述例如DFA的状态或其他内容。由于它们是自我的,因此无需记录这些常量

But sometimes I have a class, where I have several constants describing for example states of DFA or something.. theres no need to document theese constant, because they are self-explaining..

所以我在类中添加了注释 @SuppressWarnings( javadoc),这是我的意思-Eclipse不考虑注释

So I added annotation @SuppressWarnings("javadoc") to the class and here's my point - Eclipse does not concider the annotation and still shows warnings on missing javadocs..

@SuppressWarnings( all)可以完成任务,但这有副作用,这是不需要;-)

@SuppressWarnings("all") does the job, but that has side effects, which are not desired ;-)

您是否遇到相同的问题?这是一个错误还是我只配置了一些错误的东西?有什么解决方法吗?还是在较新的版本中对此进行了纠正?

Are you experiencing the same issue? Is this a bug or do I only have something missconfigured? Is there any workaround? Or is this corrected in newer versions?

PS:我正在使用
版本:3.3.2
Build ID:M20080221-1800

PS: I'm using Version: 3.3.2 Build id: M20080221-1800

推荐答案

我发现此错误,该错误仍处于打开状态。

I found this bug, which is still open.

这篇关于Eclipse-@SuppressWarnings(“ javadoc”)不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆