Browse Source

优化代码,加上final关键字

test
smallchill 5 years ago
parent
commit
f93117a210
  1. 4
      blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/OssBuilder.java
  2. 4
      blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/SmsBuilder.java

4
blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/OssBuilder.java

@ -60,12 +60,12 @@ public class OssBuilder {
/** /**
* OssTemplate配置缓存池 * OssTemplate配置缓存池
*/ */
private Map<String, OssTemplate> templatePool = new ConcurrentHashMap<>(); private final Map<String, OssTemplate> templatePool = new ConcurrentHashMap<>();
/** /**
* oss配置缓存池 * oss配置缓存池
*/ */
private Map<String, Oss> ossPool = new ConcurrentHashMap<>(); private final Map<String, Oss> ossPool = new ConcurrentHashMap<>();
/** /**
* 获取template * 获取template

4
blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/SmsBuilder.java

@ -62,12 +62,12 @@ public class SmsBuilder {
/** /**
* SmsTemplate配置缓存池 * SmsTemplate配置缓存池
*/ */
private Map<String, SmsTemplate> templatePool = new ConcurrentHashMap<>(); private final Map<String, SmsTemplate> templatePool = new ConcurrentHashMap<>();
/** /**
* Sms配置缓存池 * Sms配置缓存池
*/ */
private Map<String, Sms> smsPool = new ConcurrentHashMap<>(); private final Map<String, Sms> smsPool = new ConcurrentHashMap<>();
/** /**

Loading…
Cancel
Save