File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/springframework/data/auditing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 16
16
package org .springframework .data .auditing ;
17
17
18
18
import java .time .temporal .TemporalAccessor ;
19
- import java .util .HashMap ;
20
19
import java .util .Map ;
21
20
import java .util .Optional ;
22
21
32
31
import org .springframework .data .mapping .context .PersistentEntities ;
33
32
import org .springframework .data .util .Optionals ;
34
33
import org .springframework .util .Assert ;
34
+ import org .springframework .util .ConcurrentReferenceHashMap ;
35
35
36
36
/**
37
37
* {@link AuditableBeanWrapperFactory} that will create am {@link AuditableBeanWrapper} using mapping information
@@ -57,7 +57,7 @@ public MappingAuditableBeanWrapperFactory(PersistentEntities entities) {
57
57
Assert .notNull (entities , "PersistentEntities must not be null!" );
58
58
59
59
this .entities = entities ;
60
- this .metadataCache = new HashMap <>();
60
+ this .metadataCache = new ConcurrentReferenceHashMap <>();
61
61
}
62
62
63
63
/*
You can’t perform that action at this time.
0 commit comments