Skip to content

Commit 8992e46

Browse files
committed
fix CollectionCacheValue concurrency (#328)
1 parent c047d5f commit 8992e46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/arangodb/springframework/core/template/CollectionCacheValue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.arangodb.springframework.core.template;
22

3-
import java.util.ArrayList;
43
import java.util.Collection;
4+
import java.util.concurrent.CopyOnWriteArrayList;
55

66
import com.arangodb.ArangoCollection;
77

@@ -13,7 +13,7 @@ class CollectionCacheValue {
1313
public CollectionCacheValue(final ArangoCollection collection) {
1414
super();
1515
this.collection = collection;
16-
this.entities = new ArrayList<>();
16+
this.entities = new CopyOnWriteArrayList<>();
1717
}
1818

1919
public ArangoCollection getCollection() {

0 commit comments

Comments
 (0)