编码和注释以生成javadocs作者姓名

时间:2013-11-16 17:33:58

标签: java javadoc

我正在制作/生成javadocs。关于编码/评论javadoc,我需要一些帮助。

为什么在源代码中,此类或任何类都不显示其名称http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ConcurrentHashMap.html。 theres @author Doug Lea或其他一些

这只是一个例子。它适用于每个班级。

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

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

package java.util.concurrent; import 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

这里没有作者^

1 个答案:

答案 0 :(得分:2)

查看documentation for javadoc

  

-author

     

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