mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-20 18:47:38 +08:00
#956 使用ConcurrentHashMap替换HashTable
This commit is contained in:
@@ -19,6 +19,7 @@ package me.chanjar.weixin.common.util.res;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
/**
|
||||
* An internationalization / localization helper class which reduces
|
||||
@@ -46,7 +47,7 @@ import java.util.*;
|
||||
*/
|
||||
public class StringManager {
|
||||
|
||||
private static final Map<String, Map<Locale, StringManager>> MANAGERS = new Hashtable<>();
|
||||
private static final Map<String, Map<Locale, StringManager>> MANAGERS = new ConcurrentHashMap<>();
|
||||
private static int LOCALE_CACHE_SIZE = 10;
|
||||
/**
|
||||
* The ResourceBundle for this StringManager.
|
||||
|
Reference in New Issue
Block a user