Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make UnitImageFactory synchronized. #12649

Merged
merged 1 commit into from
Jun 15, 2024
Merged

Conversation

asvitkine
Copy link
Contributor

It's already used from multiple threads, per #12623, so making the methods that access internal collections synchronized to fix ConcurrentModificationException.

This is using the lombok synchronized annotation which is better than the Java keyword since it keeps an internal lock object.

Fixes #12623

Notes to Reviewer

It's already used from multiple threads, per triplea-game#12623, so making the methods that access internal collections synchronized to fix ConcurrentModificationException.

This is using the lombok synchronized annotation which is better than the Java keyword since it keeps an internal lock object.
@asvitkine asvitkine merged commit 1d9c966 into triplea-game:master Jun 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.6.14752: HistorySynchronizer#lambda$startHistoryEvent$1:48 - java.util.ConcurrentModificationException
1 participant