File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core/src/main/java/org/springframework/security/core/annotation Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
22
import java .lang .reflect .Parameter ;
23
23
import java .util .ArrayList ;
24
24
import java .util .Collections ;
25
- import java .util .HashMap ;
26
25
import java .util .HashSet ;
27
26
import java .util .List ;
28
27
import java .util .Map ;
29
28
import java .util .Set ;
29
+ import java .util .concurrent .ConcurrentHashMap ;
30
30
31
31
import org .springframework .core .MethodClassKey ;
32
32
import org .springframework .core .annotation .AnnotationConfigurationException ;
@@ -89,9 +89,9 @@ final class UniqueSecurityAnnotationScanner<A extends Annotation> extends Abstra
89
89
90
90
private final List <Class <A >> types ;
91
91
92
- private final Map <Parameter , MergedAnnotation <A >> uniqueParameterAnnotationCache = new HashMap <>();
92
+ private final Map <Parameter , MergedAnnotation <A >> uniqueParameterAnnotationCache = new ConcurrentHashMap <>();
93
93
94
- private final Map <MethodClassKey , MergedAnnotation <A >> uniqueMethodAnnotationCache = new HashMap <>();
94
+ private final Map <MethodClassKey , MergedAnnotation <A >> uniqueMethodAnnotationCache = new ConcurrentHashMap <>();
95
95
96
96
UniqueSecurityAnnotationScanner (Class <A > type ) {
97
97
Assert .notNull (type , "type cannot be null" );
You can’t perform that action at this time.
0 commit comments