gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 04:09:22 26 4
gpt4 key购买 nike

我正在制作/生成 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com