mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
refactor: optimize FieldWrapper
This commit is contained in:
parent
bc7a79f31e
commit
60aabde820
@ -39,6 +39,7 @@ public class FieldWrapper {
|
||||
Map<String, FieldWrapper> wrapperMap = cache.get(clazz);
|
||||
if (wrapperMap == null) {
|
||||
synchronized (clazz) {
|
||||
wrapperMap = cache.get(clazz);
|
||||
if (wrapperMap == null) {
|
||||
wrapperMap = new ConcurrentHashMap<>();
|
||||
cache.put(clazz, wrapperMap);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user