File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
core/src/main/java/org/springframework/security/core/annotation Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
import java .lang .annotation .Annotation ;
20
20
import java .lang .reflect .AnnotatedElement ;
21
21
import java .util .ArrayList ;
22
- import java .util .HashMap ;
23
22
import java .util .List ;
24
23
import java .util .Map ;
24
+ import java .util .concurrent .ConcurrentHashMap ;
25
25
26
26
/**
27
27
* Factory for creating {@link SecurityAnnotationScanner} instances.
31
31
*/
32
32
public final class SecurityAnnotationScanners {
33
33
34
- private static final Map <Class <? extends Annotation >, SecurityAnnotationScanner <? extends Annotation >> uniqueScanners = new HashMap <>();
34
+ private static final Map <Class <? extends Annotation >, SecurityAnnotationScanner <? extends Annotation >> uniqueScanners = new ConcurrentHashMap <>();
35
35
36
- private static final Map <Class <? extends Annotation >, SecurityAnnotationScanner <? extends Annotation >> uniqueTemplateScanners = new HashMap <>();
36
+ private static final Map <Class <? extends Annotation >, SecurityAnnotationScanner <? extends Annotation >> uniqueTemplateScanners = new ConcurrentHashMap <>();
37
37
38
- private static final Map <List <Class <? extends Annotation >>, SecurityAnnotationScanner <? extends Annotation >> uniqueTypesScanners = new HashMap <>();
38
+ private static final Map <List <Class <? extends Annotation >>, SecurityAnnotationScanner <? extends Annotation >> uniqueTypesScanners = new ConcurrentHashMap <>();
39
39
40
40
private SecurityAnnotationScanners () {
41
41
}
You can’t perform that action at this time.
0 commit comments