How to make warnings compile if not all public things are JavaDoc'd?

I want to receive compile-time warnings for every public object (class, interface, field, method) that does not have a Javadoc comment.

How to enable this in Eclipse?

+4
source share
1 answer

Based on your tag, I assume what you mean in Eclipse. To do this, open the menu item "Window" → "Settings", and then "In Java" → "Compiler → Javadoc a drop-down menu will appear that allows you to handle missing javadoc tags as" Error "," Warning "or" Ignore ".

This answer was for the latest version of eclipse, but if you are looking for javadoc in the search for settings, you can find it quite easily.

+4
source

Source: https://habr.com/ru/post/1385473/


All Articles