mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-11-04 10:57:10 +08:00 
			
		
		
		
	style: 适配 Java 11 新 API
1.对 Optional 的 isPresent() 取反用法 => isEmpty() 2.集合 toArray(new String[0]) 用法 => toArray(String[]::new)
This commit is contained in:
		@@ -200,14 +200,14 @@ public class MailUtils {
 | 
			
		||||
        // 设置收信人
 | 
			
		||||
        // 抄送人
 | 
			
		||||
        if (CollUtil.isNotEmpty(ccs)) {
 | 
			
		||||
            messageHelper.setCc(ccs.toArray(new String[0]));
 | 
			
		||||
            messageHelper.setCc(ccs.toArray(String[]::new));
 | 
			
		||||
        }
 | 
			
		||||
        // 密送人
 | 
			
		||||
        if (CollUtil.isNotEmpty(bccs)) {
 | 
			
		||||
            messageHelper.setBcc(bccs.toArray(new String[0]));
 | 
			
		||||
            messageHelper.setBcc(bccs.toArray(String[]::new));
 | 
			
		||||
        }
 | 
			
		||||
        // 收件人
 | 
			
		||||
        messageHelper.setTo(tos.toArray(new String[0]));
 | 
			
		||||
        messageHelper.setTo(tos.toArray(String[]::new));
 | 
			
		||||
 | 
			
		||||
        // 设置附件
 | 
			
		||||
        if (ArrayUtil.isNotEmpty(files)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user