As it is mentioned in Annotation to disable JavaDocs I was not able to disable generation of Javadocs by JAXB when generating Java classes from XSD.
I clearly do not need documentation for hundreds of getters/setters. Is there a way to automate deletion of javadocs instead of manually selecting and deleting them?
From the main menu, select Tools | Generate JavaDoc.
Javadoc scans your source files looking for documentation comments, also known as “Javadoc comments”. They begin with /** (two stars) and end with */ (one star). Anything in between is considered part of the documentation. The class comment explains the purpose of the class.
put the cursor on the method name you want to add javadoc ,and then press alt + enter, there will be an add javadoc option in the popup. If the method already has a javadoc,then there will be no add javadoc option.
Fortunately, all modern versions of the JDK provide the Javadoc tool – for generating API documentation from comments present in the source code.
The solution that works so far is to use replace functionality with regex search enabled and to use the following regex for selection \/\*\s*[\s\S]*?\*\/$
, then replace found javadoc entries with an empty string.
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