javadoc MyClass.java 格式错误
javadoc MyClass.java formatting errors
我正在尝试为我的 class 创建一个 HTML 界面,但我认为我有一些与 <
和 >
格式相关的错误。我在 Fedora 28 上 java 1.8.0_191.
我写了 javadoc MyStringVector.java
并得到了这些错误:
MyStringVector.java:53: error: malformed HTML
if 0 <= index <= size(), insert the item specified in the location
MyStringVector.java:57: error: malformed HTML
if index < 0 o index > size() returns without do nothing
MyStringVector.java:107: error: malformed HTML
if 0 <= index < size(), removes the element at the specified index,
MyStringVector.java:189: error: malformed HTML
if index < 0 o index >=size() returns null.
如果是格式问题,我必须使用什么转义序列?谢谢!
像这样转义 >
和 <
字符:
if 0 <= index <= size()
或
if index < 0 o index > size()
对于为 xml/html
格式保留的所有符号依此类推。
我正在尝试为我的 class 创建一个 HTML 界面,但我认为我有一些与 <
和 >
格式相关的错误。我在 Fedora 28 上 java 1.8.0_191.
我写了 javadoc MyStringVector.java
并得到了这些错误:
MyStringVector.java:53: error: malformed HTML
if 0 <= index <= size(), insert the item specified in the location
MyStringVector.java:57: error: malformed HTML
if index < 0 o index > size() returns without do nothing
MyStringVector.java:107: error: malformed HTML
if 0 <= index < size(), removes the element at the specified index,
MyStringVector.java:189: error: malformed HTML
if index < 0 o index >=size() returns null.
如果是格式问题,我必须使用什么转义序列?谢谢!
像这样转义 >
和 <
字符:
if 0 <= index <= size()
或
if index < 0 o index > size()
对于为 xml/html
格式保留的所有符号依此类推。