警告 - @author:是一个未知标签

问题描述 投票:0回答:1

有人可以帮忙解决这个问题吗? 当我尝试生成 javadoc 时,标签 @author 会忽略。 所有其他标签都很好。

也许有人会说,如何创建标签,在重新编译文件时将新日期放入 javadoc 中?我使用 Intellij Idea。

(抱歉英语不好)

这里是控制台日志:

    Loading source files for package ua.com.softlab.runtime.compiler.cfm...
Loading source files for package ua.com.softlab.runtime.compiler.resource...
Loading source files for package ua.com.softlab.runtime.compiler...
Loading source files for package ua.com.softlab.runtime.compiler.util...
Constructing Javadoc information...
Standard Doclet version 1.7.0_17
Building tree for all the packages and classes...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\cfm\ClassFileManager.html...
C:\Users\alexa_000\IDEA\Runtime class compiler\src\main\java\ua\com\softlab\runtime\compiler\cfm\ClassFileManager.java:20: warning - @author: is an unknown tag.
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\resource\CompilerMapper.html...
C:\Users\alexa_000\IDEA\Runtime class compiler\src\main\java\ua\com\softlab\runtime\compiler\resource\CompilerMapper.java:13: warning - @author: is an unknown tag.
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\resource\ResourceObject.html...
C:\Users\alexa_000\IDEA\Runtime class compiler\src\main\java\ua\com\softlab\runtime\compiler\resource\ResourceObject.java:14: warning - @author: is an unknown tag.
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\CodeCompiler.html...
C:\Users\alexa_000\IDEA\Runtime class compiler\src\main\java\ua\com\softlab\runtime\compiler\CodeCompiler.java:9: warning - @author: is an unknown tag.
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\Compiler.html...
C:\Users\alexa_000\IDEA\Runtime class compiler\src\main\java\ua\com\softlab\runtime\compiler\Compiler.java:16: warning - @author: is an unknown tag.
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\Compiler.CompiledResource.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\RuntimeJavaClassCompiler.html...
C:\Users\alexa_000\IDEA\Runtime class compiler\src\main\java\ua\com\softlab\runtime\compiler\RuntimeJavaClassCompiler.java:19: warning - @author: is an unknown tag.
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\util\Path.html...
Generating C:\Users\alexa_000\Desktop\javadoc\overview-frame.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\package-frame.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\package-summary.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\package-tree.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\cfm\package-frame.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\cfm\package-summary.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\cfm\package-tree.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\resource\package-frame.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\resource\package-summary.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\resource\package-tree.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\util\package-frame.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\util\package-summary.html...
Generating C:\Users\alexa_000\Desktop\javadoc\ua\com\softlab\runtime\compiler\util\package-tree.html...
Generating C:\Users\alexa_000\Desktop\javadoc\constant-values.html...
Building index for all the packages and classes...
Generating C:\Users\alexa_000\Desktop\javadoc\overview-tree.html...
Generating C:\Users\alexa_000\Desktop\javadoc\index-files\index-1.html...
Generating C:\Users\alexa_000\Desktop\javadoc\index-files\index-2.html...
Generating C:\Users\alexa_000\Desktop\javadoc\index-files\index-3.html...
Generating C:\Users\alexa_000\Desktop\javadoc\index-files\index-4.html...
Generating C:\Users\alexa_000\Desktop\javadoc\index-files\index-5.html...
Generating C:\Users\alexa_000\Desktop\javadoc\index-files\index-6.html...
Generating C:\Users\alexa_000\Desktop\javadoc\index-files\index-7.html...
Generating C:\Users\alexa_000\Desktop\javadoc\index-files\index-8.html...
Generating C:\Users\alexa_000\Desktop\javadoc\index-files\index-9.html...
Generating C:\Users\alexa_000\Desktop\javadoc\deprecated-list.html...
Building index for all classes...
Generating C:\Users\alexa_000\Desktop\javadoc\allclasses-frame.html...
Generating C:\Users\alexa_000\Desktop\javadoc\allclasses-noframe.html...
Generating C:\Users\alexa_000\Desktop\javadoc\index.html...
Generating C:\Users\alexa_000\Desktop\javadoc\overview-summary.html...
Generating C:\Users\alexa_000\Desktop\javadoc\help-doc.html...
6 warnings
java intellij-idea javadoc author
1个回答
0
投票

我添加另一个不同的答案。标签

@author
必须位于类注释中。如果你把它放在某个方法注释中,它会给出错误“未知标签”。

© www.soinside.com 2019 - 2024. All rights reserved.