In Eclipse, is there a way to find all (public) classes/methods which do not currently have any Javadoc comments?
Additionally, would it be possible to automatically add a basic Javadoc comment such as:
/**
* TODO Javadoc
* @param i
* @return
*/
so that these methods without Javadoc would also be added to my TODO list?
See Window -> Preferences -> Java -> Compiler -> JavaDoc
Change the missing JavaDoc tags preference to Warning.
After all projects have been rebuilt, you can switch to the Problems View and all methods with missing JavaDoc are listed.
HTH Tom
Edit: Unfortunately there is no way to add a JavaDoc-template to all missing methods in one single step. The fastest way is to insert a JavaDoc is to set the cursor on the method-declaration and then using the shortcut Shift+Alt+J
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With