From 7d289f0c5ea6ee5fc820e888384cc473f80003f3 Mon Sep 17 00:00:00 2001 From: Looly Date: Tue, 20 Jan 2026 11:26:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`MailAccount.setAuth`?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=B8=8Efield=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=88issue#4217@Github=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 ++- .../src/main/java/cn/hutool/extra/mail/MailAccount.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3144f20e58..5e7cda1d54 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # 🚀Changelog ------------------------------------------------------------------------------------------------------------- -# 5.8.44(2026-01-18) +# 5.8.44(2026-01-20) ### 🐣新特性 * 【core 】 `NumberUtil.parseNumber`增加支持科学计数法(pr#4211@Github) * 【captcha】 `AbstractCaptcha`增加`setStroke`方法支持线条粗细(issue#IDJQ15@Gitee) @@ -9,6 +9,7 @@ ### 🐞Bug修复 * 【json 】 修复`JSONUtil.wrap`忽略错误问题(issue#4210@Github) * 【http 】 修复`HttpUtil.normalizeParams `在极端输入下抛 StringIndexOutOfBoundsException(pr#4216@Github) +* 【extra 】 修复`MailAccount.setAuth`参数与field不一致问题(issue#4217@Github) ------------------------------------------------------------------------------------------------------------- # 5.8.43(2026-01-04) diff --git a/hutool-extra/src/main/java/cn/hutool/extra/mail/MailAccount.java b/hutool-extra/src/main/java/cn/hutool/extra/mail/MailAccount.java index a2ff5909e0..bc34de76dc 100755 --- a/hutool-extra/src/main/java/cn/hutool/extra/mail/MailAccount.java +++ b/hutool-extra/src/main/java/cn/hutool/extra/mail/MailAccount.java @@ -224,7 +224,7 @@ public class MailAccount implements Serializable { * @param isAuth 是否需要用户名密码验证 * @return this */ - public MailAccount setAuth(boolean isAuth) { + public MailAccount setAuth(Boolean isAuth) { this.auth = isAuth; return this; }