【发布时间】:2023-07-09 10:20:02
【问题描述】:
/**
* Gets the meatball icon for a nincompoop.
*
* <p>
* Example: {@code <custom:meatball color="<%= Meatball.RED %> nincompoop="${person}" />}
*
* @author King Cong
*
*/
“${person}”部分破坏了文档注释,因为它使用了花括号。
【问题讨论】:
-
将
{@link ...}转换为<a href="...">...</a>的情况更糟。有关用例,请参阅correctly render javadoc method links to external html javadoc documents that use dashes instead of parentheses and commas。
标签: java javadoc escaping curly-braces