Eclipse - @SuppressWarnings(“javadoc”) does not work

半城伤御伤魂 提交于 2019-12-06 03:26:14

问题


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.

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..

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") 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: I'm using Version: 3.3.2 Build id: M20080221-1800


回答1:


I found this bug, which is still open.




回答2:


At the end of this page you will find all SuppressWarning options which are handled in Eclipse. Unfortunately currently there is no support for suppressing just javadoc warnings. The bug Andrew mentioned is really a feature request for adding this but it seems to have low priority (you can vote for this bug to show Eclipse developers the importance of this feature for you).




回答3:


have you tried "allJavadoc" ?



来源:https://stackoverflow.com/questions/951062/eclipse-suppresswarningsjavadoc-does-not-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!