Skip to content

Commit

Permalink
fix: change EntityMetadataDTOs map to concurrent hash map
Browse files Browse the repository at this point in the history
  • Loading branch information
Idane committed Jun 28, 2022
1 parent 509ecfb commit 8906e07
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;

public class CrudHelperImpl implements CrudHelper {
Expand All @@ -74,7 +75,7 @@ public class CrudHelperImpl implements CrudHelper {
@Autowired
private ApplicationContext applicationContext;

private Map<Class<? extends BaseCrudEntity<?>>, EntityMetadataDTO> entityMetadataDTOs = new HashMap<>();
private Map<Class<? extends BaseCrudEntity<?>>, EntityMetadataDTO> entityMetadataDTOs = new ConcurrentHashMap<>();

private CrudCache pagingCache;

Expand Down

0 comments on commit 8906e07

Please sign in to comment.