Gradle javadoc 任务因意外文本而失败

Gradle javadoc task fails with unexpected text

我收到以下错误:

/Users/rin/Development/Java/Libs/JavaClearHttp/src/main/java/com/levelrin/javaclearhttp/record/Record.java:22: error: unexpected text
 * The {@link this#toString()} method can be useful for viewing all information at once.
       ^

javadoc 如下所示:

/**
 * It's responsible for providing the request and response records.
 * The {@link this#toString()} method can be useful for viewing all information at once.
 */

有什么建议吗?

this 关键字导致了问题。 我改用 class 名称,问题消失了。

之前:

{@link this#toString()}

之后:

{@link Record#toString()}