8000 fixed concurrency in annotation cache (#302) · arangodb/spring-data@d2b66b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d2b66b2

Browse files
committed
fixed concurrency in annotation cache (#302)
1 parent e6f784e commit d2b66b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/arangodb/springframework/core/mapping/DefaultArangoPersistentEntity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
import java.lang.annotation.Annotation;
4646
import java.util.*;
47+
import java.util.concurrent.ConcurrentHashMap;
4748
import java.util.stream.Collectors;
4849

4950
/**
@@ -78,7 +79,7 @@ public DefaultArangoPersistentEntity(final TypeInformation<T> information) {
7879
persistentIndexedProperties = new ArrayList<>();
7980
geoIndexedProperties = new ArrayList<>();
8081
fulltextIndexedProperties = new ArrayList<>();
81-
repeatableAnnotationCache = new HashMap<>();
82+
repeatableAnnotationCache = new ConcurrentHashMap<>();
8283
documentAnnotation = findAnnotation(Document.class);
8384
edgeAnnotation = findAnnotation(Edge.class);
8485
String col = StringUtils.uncapitalize(information.getType().getSimpleName());

0 commit comments

Comments
 (0)
0