修复AIConfigBuilder中方法名拼写错误(pr#1382@Gitee)

This commit is contained in:
Looly 2025-10-10 17:28:43 +08:00
parent a47c111547
commit 69c2916ee0
2 changed files with 31 additions and 4 deletions

View File

@ -34,6 +34,7 @@
* 【extra 】 修复`Sftp`递归删除目录时使用相对路径可能导致死循环的问题pr#1380@Gitee * 【extra 】 修复`Sftp`递归删除目录时使用相对路径可能导致死循环的问题pr#1380@Gitee
* 【db 】 修复`SqlUtil.removeOuterOrderBy`处理没有order by的语句导致异常问题pr#4089@Github * 【db 】 修复`SqlUtil.removeOuterOrderBy`处理没有order by的语句导致异常问题pr#4089@Github
* 【extra 】 修复`Sftp.upload`目标路径为null时空指针问题issue#ID14WX@Gitee * 【extra 】 修复`Sftp.upload`目标路径为null时空指针问题issue#ID14WX@Gitee
* 【ai 】 修复`AIConfigBuilder`中方法名拼写错误pr#1382@Gitee
------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------
# 5.8.40(2025-08-26) # 5.8.40(2025-08-26)

View File

@ -112,8 +112,21 @@ public class AIConfigBuilder {
* @param timeout 超时时间 * @param timeout 超时时间
* @return config * @return config
* @since 5.8.39 * @since 5.8.39
* @deprecated 请使用 {@link #setTimeout(int)}
*/ */
public synchronized AIConfigBuilder setTimout(final int timeout) { @Deprecated
public AIConfigBuilder setTimout(final int timeout) {
return setTimeout(timeout);
}
/**
* 设置连接超时时间不设置为默认值
*
* @param timeout 超时时间
* @return config
* @since 5.8.41
*/
public synchronized AIConfigBuilder setTimeout(final int timeout) {
if (timeout > 0) { if (timeout > 0) {
config.setTimeout(timeout); config.setTimeout(timeout);
} }
@ -126,10 +139,23 @@ public class AIConfigBuilder {
* @param readTimout 取超时时间 * @param readTimout 取超时时间
* @return config * @return config
* @since 5.8.39 * @since 5.8.39
* @deprecated 请使用 {@link #setReadTimeout(int)}
*/ */
public synchronized AIConfigBuilder setReadTimout(final int readTimout) { @Deprecated
if (readTimout > 0) { public AIConfigBuilder setReadTimout(final int readTimout) {
config.setReadTimeout(readTimout); return setReadTimeout(readTimout);
}
/**
* 设置读取超时时间不设置为默认值
*
* @param readTimeout 取超时时间
* @return config
* @since 5.8.41
*/
public synchronized AIConfigBuilder setReadTimeout(final int readTimeout) {
if (readTimeout > 0) {
config.setReadTimeout(readTimeout);
} }
return this; return this;
} }