Based on the answer: Multiple line code example in Javadoc comment I'd like to write following javadoc (on class level).
/**
* Whatever txt1 ...
* <pre>
* {@code
* @Lob
* private byte[] foo;
* }
* </pre>
* Whatever txt2 ...
*
* @author $Author: $
*/
public class Foo {
However it renders like this (in eclipse preview):
Whatever txt1 ...
Author:
$Author: $
@Lob
private byte[] foo;
}
Whatever txt2 ...
Please note the messed up order of the author annotation
Any idea what is the appropriate format/how to properly escate @
sign?
As once going for:
/**
* Whatever txt1 ...
* <pre>
* {@code
* Lob
* private byte[] foo;
* }
* </pre>
* Whatever txt2 ...
*
* @author $Author: $
*/
public class Foo {
it's rendered correctly:
Whatever txt1 ...
Lob
private byte[] foo;
Whatever txt2 ...
Author:
$Author: $