This is what I'm trying to do:
/**
* <pre>
* {@code
* @XmlRootElement
* public final class Page {
* }
* }
* </pre>
*/
I'm expecting it to be formatted like:
@XmlRootElement
public final class Page {
}
But I'm getting:
@XmlRootElement
public final class Page {
}
Replacing these HTML entities with real symbols (@
, {
, }
) leads to javadoc warnings and absolutely incorrect formatting. What is a workaround?
This is how it finally works for me:
/**
* <pre>
* @XmlRootElement
* public final class Page {
* }
* </pre>
*/