Skip to content

chore: improve thread safety of cat.ddk.caching.MapCache#1125

Merged
ava-fred merged 1 commit into
dsldevkit:masterfrom
ava-fred:work.250516
May 29, 2025
Merged

chore: improve thread safety of cat.ddk.caching.MapCache#1125
ava-fred merged 1 commit into
dsldevkit:masterfrom
ava-fred:work.250516

Conversation

@ava-fred
Copy link
Copy Markdown
Collaborator

The MapCache class implements the java.util.Map interface, but uses the default implementation of the interface for several methods (e.g. computeIfAbsent). These default implementations are not thread safe, therefore we implement all java.util.Map methods in the class itself.

The MapCache class implements the java.util.Map interface, but uses the
default implementation of the interface for several methods (e.g.
computeIfAbsent). These default implementations are not thread safe,
therefore we implement all java.util.Map methods in the class itself.
@ava-fred ava-fred requested a review from rubenporras May 28, 2025 11:29
@ava-fred ava-fred merged commit 45cd117 into dsldevkit:master May 29, 2025
2 checks passed
@ava-fred ava-fred deleted the work.250516 branch May 29, 2025 08:25
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 participants