File tree 1 file changed +11
-1
lines changed
src/main/java/org/apache/ibatis/session
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 25
25
import java .util .Map ;
26
26
import java .util .Properties ;
27
27
import java .util .Set ;
28
+ import java .util .concurrent .ConcurrentHashMap ;
28
29
import java .util .function .BiFunction ;
29
30
30
31
import org .apache .ibatis .binding .MapperRegistry ;
@@ -998,7 +999,7 @@ protected void checkLocallyForDiscriminatedNestedResultMaps(ResultMap rm) {
998
999
}
999
1000
}
1000
1001
1001
- protected static class StrictMap <V > extends HashMap <String , V > {
1002
+ protected static class StrictMap <V > extends ConcurrentHashMap <String , V > {
1002
1003
1003
1004
private static final long serialVersionUID = -4950446264854982944L ;
1004
1005
private final String name ;
@@ -1055,6 +1056,15 @@ public V put(String key, V value) {
1055
1056
return super .put (key , value );
1056
1057
}
1057
1058
1059
+ @ Override
1060
+ public boolean containsKey (Object key ) {
1061
+ if (key == null ) {
1062
+ return false ;
1063
+ }
1064
+
1065
+ return super .get (key ) != null ;
1066
+ }
1067
+
1058
1068
@ Override
1059
1069
public V get (Object key ) {
1060
1070
V value = super .get (key );
You can’t perform that action at this time.
0 commit comments