Reformat Code inserts unneccessary spaces after brackets in Groovydoc comments

Answered

Hello,

 

I have stumbled upon weird behavior with Groovydoc comments, {@code} and brackets (), {}, <>, etc.

When I run Reformat code, IntelliJ IDEA adds unneccessary spaces into all of my properly formatted {@code} in Groovydocs. This doesn't happen with Javadoc, only Groovydoc.

Original:

class GroovydocFormatting {
/**
* Testing brackets in Javadoc comments.
* {@code Test<T>}
*/
void test() {

}
}

After Reformat code:

class GroovydocFormatting {
/**
* Testing brackets in Javadoc comments.
* {@code Test < T >}
*/
void test() {

}
}


Problem is, I do not want that. I want all of my spacing to be as it was, not to be destroyed by Reformat Code!

I couldn't find a setting that would disable this. What should I do?

0

Please sign in to leave a comment.