java - 编码和注释以生成 javadoc 作者姓名

标签 java javadoc

我正在制作/生成 javadocs。我需要一些有关编码/注释 javadocs 的帮助。

为什么这个类或任何类不显示作者姓名 http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ConcurrentHashMap.html在源代码中。有@author Doug Lea 或其他一些

这只是一个例子。每个类(class)都会发生这种情况。

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

在热点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> {

API 文档:http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ConcurrentHashMap.html

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

这里没有作者 ^

最佳答案

看看documentation for javadoc :

-author

Includes the @author text in the generated docs.

关于java - 编码和注释以生成 javadoc 作者姓名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20021508/

相关文章:

java - 不明白传递参数的调用方法

java - 存储在 netbeans ide 中的 Maven 存储库的源代码和 javadoc jar 在哪里?

java - 使用 Javadoc 和 Ant 测量文档覆盖率

java - 有没有办法定义 'javadoc types' - 成员的自定义参数?

Linux 上的 JavaFX

java - 当更新仅修改新数据时,它被称为什么?

Java try-with-resources 语法不规则

JAX-RS 服务的 Javadoc

java - 当我将鼠标移到方法名称上时,使用 @param 标记参数会打印两次

java - 对单词字符进行排序的问题