So I have a javadoc that looks like this (censored for the public of course):
/**
* Description of my method
* <p>
* <b>Example:</b>
* </p>
* <pre>
* {@code
* /**
* * Sample Javadoc
* */
* public final void testMyMethod()
* {
* // some logic
* }}
* </pre>
* @return Description of my return value.
*/
So the reason for this is that doing */ in my example will end the javadoc. Having the braces confuses the @code tag.
The problem is that the generated javadoc shows the HTML entities codes instead of the actual character that I want to display to the consumers of my javadoc. Any ideas on how I can get around this?