Are There Any Tools For Updating Javadoc Automatically?

雨燕双飞 提交于 2019-12-03 16:11:00

NetBeans has a tool for that. It does exactly what you ask.

You can either click on the Tools Menu, then Analyze Javadocs from the top, or right click on a file and click Tools, then Analyze Javadocs.

This then give you a list of all problems it finds with your Javadocs with an option to fix it. It allows you to fix a single problem in a method, fix the javadocs for the method, for the file, for the package, or for the entire project.

One solution, if you're using eclipse, is to go to Window -> Preferences -> Java -> Compiler -> Javadoc and then set the 'Malformed Javadoc comments' variable to warning or error.

You can then go to the problems view Window -> Show View -> Problems and then on each error right click and select 'Quick Fix'.

I have not tried any of these other than DocCheck, but this somewhat-dated page on Sun's site lists several third-party doclets, some of which purport to insert Javadoc into your source. Of those, you might take a look at Doc-o-Matic, JRefactory Pretty Printer, and ACTOS Auto Commentator for Java. Again, I have not tried any of these, but it's a place to start.

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