编码和注释以生成javadocs作者姓名 我正处于制作/生成JavaDoc的过程中。我需要一些关于编码/注释javadocs的帮助

编码和注释以生成javadocs作者姓名 我正处于制作/生成JavaDoc的过程中。我需要一些关于编码/注释javadocs的帮助,java,javadoc,Java,Javadoc,为什么这个类或任何类在源代码中不显示作者名称。有@author Doug Lea或其他人 这只是一个例子。每节课都会这样 如何使文档显示作者姓名和更多详细信息 在热点oracle jdk的src.zip中找到的代码: 包java.util.concurrent; 导入java.util.Map /** * A {@link java.util.Map} providing additional atomic * <tt>putIfAbsent</tt>, <tt

为什么这个类或任何类在源代码中不显示作者名称。有@author Doug Lea或其他人

这只是一个例子。每节课都会这样

如何使文档显示作者姓名和更多详细信息

在热点oracle jdk的src.zip中找到的代码:

包java.util.concurrent; 导入java.util.Map

/**
 * A {@link java.util.Map} providing additional atomic
 * <tt>putIfAbsent</tt>, <tt>remove</tt>, and <tt>replace</tt> methods.
 *
 * <p>Memory consistency effects: As with other concurrent
 * collections, actions in a thread prior to placing an object into a
 * {@code ConcurrentMap} as a key or value
 * <a href="package-summary.html#MemoryVisibility"><i>happen-before</i></a>
 * actions subsequent to the access or removal of that object from
 * the {@code ConcurrentMap} in another thread.
 *
 * <p>This interface is a member of the
 * <a href="{@docRoot}/../technotes/guides/collections/index.html">
 * Java Collections Framework</a>.
 *
 * @since 1.5
 * @author Doug Lea        <------------this
 * @param <K> the type of keys maintained by this map
 * @param <V> the type of mapped values
 */
public interface ConcurrentMap<K, V> extends Map<K, V> {
这里没有作者^

请看:

-作者

在生成的文档中包含@author文本


事实并非如此。我举了一个真实的例子。hotspot jdk中真正的文档有
@author
,但在oracle站点上看不到。我也遇到了同样的问题。生成javadoc时是否传递了
-author
选项?你点击了我在回答中给出的链接了吗?哦。那是强制性的吗?我也没有通过-since选项,但是文档中有
since 1.5
。谢谢。我猜我错了,-author必须添加/enable/implement@author并在html文档中显示它。正确吗?这是因为某些信息在默认情况下显示(例如,公共成员),而有些信息则不显示(例如,私人成员或作者)。阅读文档很有帮助。尝试使用-author,并查看该作者是否出现在生成的文档中。
Like Hashtable but unlike HashMap, this class does not allow null to be used as a key or value.

This class is a member of the Java Collections Framework.

Since:
1.5
See Also:
Serialized Form