Skip to content

Commit

Permalink
ConcurrentModificationException while working with composition items.…
Browse files Browse the repository at this point in the history
… Code refactoring jmix-framework#1350

It will also fix original problem but other problems will eventually occur for custom equals and hashCode implementations
  • Loading branch information
dtaimanov committed Jan 20, 2023
1 parent 1b6ab34 commit 677b3a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ protected void unregisterInstance(Object instance, UnitOfWork unitOfWork, String
}

protected Collection<Object> getInstances(UnitOfWork unitOfWork, String store) {
Set<Object> set = new HashSet<>();
Set<Object> set = createEntitySet();
Map<UnitOfWork, Set<Object>> unitOfWorkMap = unitsOfWorkToStores.get(store);
if (unitOfWorkMap != null) {
Set<Object> entities = unitOfWorkMap.get(unitOfWork);
Expand Down

0 comments on commit 677b3a8

Please sign in to comment.