There is the small tag which is created at some places if I reformat the code in Android Studio and other Jetbrains products as well.
How can I prevent that?
Your use of <P> to separate paragraphs will be in line with the rest of the Javadoc output.
There are no real restrictions on the use of HTML in Javadoc comments. The Javadoc documentation states: Comments are written in HTML - The text must be written in HTML, in that they should use HTML entities and can use HTML tags.
The javadoc TagsRepresents the relative path to the generated document's root directory from any generated page. Adds a comment indicating that this API should no longer be used. Adds a Throws subheading to the generated documentation, with the classname and description text.
The <p/>
tag is generated on empty lines so that they are shown in the javadocs.
If you want to, you can turn this off when you reformat the code.
In Android Studio, go to File -> Settings -> Code Style -> Java -> JavaDoc tab -> Uncheck Generate "<p/>" on empty lines
Here is what the documentation will look like with and without the paragraph tag, where on the right is the text from the quick docs window.
Just take that into consideration.
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