mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix path
This commit is contained in:
parent
9223811716
commit
5ae924b9c6
@ -200,7 +200,7 @@ public class FileWriter extends FileWrapper{
|
||||
try (PrintWriter writer = getPrintWriter(isAppend)){
|
||||
for (T t : list) {
|
||||
if (null != t) {
|
||||
writer.print(t.toString());
|
||||
writer.print(t);
|
||||
printNewLine(writer, lineSeparator);
|
||||
writer.flush();
|
||||
}
|
||||
|
@ -11,8 +11,6 @@ import cn.hutool.core.io.IORuntimeException;
|
||||
public enum GlobalMailAccount {
|
||||
INSTANCE;
|
||||
|
||||
private static final String[] MAIL_SETTING_PATHS = new String[]{"config/mail.setting", "config/mailAccount.setting", "mail.setting"};
|
||||
|
||||
private final MailAccount mailAccount;
|
||||
|
||||
/**
|
||||
@ -37,7 +35,7 @@ public enum GlobalMailAccount {
|
||||
* @return MailAccount
|
||||
*/
|
||||
private MailAccount createDefaultAccount() {
|
||||
for (String mailSettingPath : MAIL_SETTING_PATHS) {
|
||||
for (String mailSettingPath : MailAccount.MAIL_SETTING_PATHS) {
|
||||
try {
|
||||
return new MailAccount(mailSettingPath);
|
||||
} catch (IORuntimeException ignore) {
|
||||
|
@ -37,10 +37,6 @@ public class MailAccount implements Serializable {
|
||||
private static final String MAIL_DEBUG = "mail.debug";
|
||||
private static final String SPLIT_LONG_PARAMS = "mail.mime.splitlongparameters";
|
||||
|
||||
/**
|
||||
* @deprecated 此公共配置没有公开必要,迁移至GlobalMailAccount#MAIL_SETTING_PATHS
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String[] MAIL_SETTING_PATHS = new String[]{"config/mail.setting", "config/mailAccount.setting", "mail.setting"};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user