Let's assume there is a method with the following javadoc comment:
/**
* Does something.
*
* @param y Parameter Y.
* @param x Parameter X.
*/
void foobar(String x, String y);
In this case, the order of parameters doesn't match the signature of the method. Initiating a code reformat (CTRL+ALT+L) doesn't reorder the @param tags as it would be expected.
This issue starts to occur frequently since the introduction of a javadoc quickfix in Intellij. The quickfix appends new @param tags to end of the javadoc comment rather than the correct position.
Description
Let's assume there is a method with the following javadoc comment:
/**
* Does something.
*
* @param y Parameter Y.
* @param x Parameter X.
*/
void foobar(String x, String y);
In this case, the order of parameters doesn't match the signature of the method. Initiating a code reformat (CTRL+ALT+L) doesn't reorder the @param tags as it would be expected.
This issue starts to occur frequently since the introduction of a javadoc quickfix in Intellij. The quickfix appends new @param tags to end of the javadoc comment rather than the correct position.