我正在制作/生成 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
这里没有作者 ^
最佳答案
-author
Includes the @author text in the generated docs.
关于java - 编码和注释以生成 javadoc 作者姓名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20021508/