gpt4 book ai didi

JavaDoc 不生成带句号的语句

转载 作者:行者123 更新时间:2023-11-29 07:12:45 26 4
gpt4 key购买 nike

/**
* for database operation.
* main execute class is {@link org.test.toolkit.database.DefaultDbClient}
*
* @author
*
*/

不生成语句:主执行类是....

Screenshot of resulting JavaDoc

/**
* for database operation,
* main execute class is {@link org.test.toolkit.database.DefaultDbClient}
*
* @author
*
*/

这会生成语句:main execute class is ....,

Screenshot of resutling JavaDoc

为什么?是 JavaDoc 错误还是 IDE 错误还是我的问题?唯一的区别是结尾是 .,.

最佳答案

JavaDoc 使用 the first sentence的评论作为摘要。句子以句号 ..

结尾

This sentence ends at the first period that is followed by a blank, tab, or line terminator, or at the first tag [...].

关于JavaDoc 不生成带句号的语句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12275647/

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