The basic formatting of Javadoc blocks is as seen in this example:
/**
* Multiple lines of Javadoc text are written here,
* wrapped normally...
*/
public int method(String p1) { ... }
but that single-line javadocs are allowed when it fits on one line.
Other tools (like that google formatter in spotless maven plugin) reflows this to a single line when possible.
The solution is to change one settings in the eclipse format profile to be:
The eclipse-java-google-style.xml specifies that javadoc should always be the "basic" format:
but that single-line javadocs are allowed when it fits on one line.
Other tools (like that google formatter in spotless maven plugin) reflows this to a single line when possible.
The solution is to change one settings in the eclipse format profile to be: