【发布时间】:2013-12-15 18:51:08
【问题描述】:
基于答案:Multiple line code example in Javadoc comment 我想编写以下 javadoc(在类级别)。
/**
* Whatever txt1 ...
* <pre>
* {@code
* @Lob
* private byte[] foo;
* }
* </pre>
* Whatever txt2 ...
*
* @author $Author: $
*/
public class Foo {
但是它呈现这样(在 Eclipse 预览中):
Whatever txt1 ...
Author:
$Author: $
@Lob
private byte[] foo;
}
Whatever txt2 ...
请注意作者注释的乱序
知道什么是适当的格式/如何正确转义@ 符号吗?
一如往常:
/**
* Whatever txt1 ...
* <pre>
* {@code
* Lob
* private byte[] foo;
* }
* </pre>
* Whatever txt2 ...
*
* @author $Author: $
*/
public class Foo {
渲染正确:
Whatever txt1 ...
Lob
private byte[] foo;
Whatever txt2 ...
Author:
$Author: $
【问题讨论】:
标签: annotations javadoc