File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/springframework/hateoas/server/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .springframework .hateoas .server .core ;
17
17
18
- import java .util .HashMap ;
19
18
import java .util .Map ;
20
19
21
20
import org .springframework .core .Ordered ;
24
23
import org .springframework .hateoas .server .LinkRelationProvider ;
25
24
import org .springframework .lang .Nullable ;
26
25
import org .springframework .util .Assert ;
26
+ import org .springframework .util .ConcurrentReferenceHashMap ;
27
27
28
28
/**
29
29
* {@link LinkRelationProvider} that evaluates the {@link Relation} annotation on entity types.
34
34
*/
35
35
public class AnnotationLinkRelationProvider implements LinkRelationProvider , Ordered {
36
36
37
- private final Map <Class <?>, Relation > annotationCache = new HashMap <>();
37
+ private final Map <Class <?>, Relation > annotationCache = new ConcurrentReferenceHashMap <>(128 );
38
38
39
39
/*
40
40
* (non-Javadoc)
You can’t perform that action at this time.
0 commit comments