微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

javadoc工具是否识别方法中的注释?

我在我的业务逻辑中写了很多评论
/**
 * Do some important stuff.
 * @param pDog
 * @param pAllDogTraining
 * @return
 */
@Overwrite
public Map<DogId,Dog> doEvaluateallDog(final Dog pDog,final Collection<DogTraining> pAllDogTraining) {
final Map<DogId,Dog> lAllDogBad = new HashMap<DogId,Dog>();
final List<DogTraining> lAllDogTraining = new ArrayList<DogTraining>(pAllDogTraining);

/**
 * Remove deleted entries.
 * Detailed description
 */
removeDeletetTrainings(lAllDogTraining);

/**
 * Set the priority for each training
 *  - bad dogs
 *  - nice dogs
 *  - unkNown dogs
 * Detailed description
 */
Collections.sort(lAllDogTraining,new DogTrainingComparator());

// Iterate over training elements and set the conflict state
for(.....

我的问题是,javadoc工具是否识别我的方法块中的文档注释?在不久的将来,我们将提供技术文档,我们项目的JavaDoc将成为其中的一部分.

解决方法

does the javadoc tool recognize the doc comments inside my method blocks too?

没有.

JavaDoc注释是一个以/ **开头的多行注释,紧跟在类声明或类的方法属性之前.

原文地址:https://www.jb51.cc/java/124211.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐