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 1919import java .lang .annotation .Annotation ;
2020import java .lang .reflect .AnnotatedElement ;
2121import java .util .ArrayList ;
22- import java .util .HashMap ;
2322import java .util .List ;
2423import java .util .Map ;
24+ import java .util .concurrent .ConcurrentHashMap ;
2525
2626/**
2727 * Factory for creating {@link SecurityAnnotationScanner} instances.
3131 */
3232public final class SecurityAnnotationScanners {
3333
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 <>();
3535
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 <>();
3737
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 <>();
3939
4040 private SecurityAnnotationScanners () {
4141 }
You can’t perform that action at this time.
0 commit comments