Skip to content

Share the metadata map-copy helper between Players and Island - #3085

Merged
tastybento merged 1 commit into
developfrom
fix/metadata-helper-dedupe
Sep 19, 2026
Merged

tastybento merged 1 commit into
developfrom
fix/metadata-helper-dedupe

Conversation

@tastybento

Copy link
Copy Markdown
Member

SonarCloud flagged a duplicated block on the 3.23.0 release PR (#3084): the toConcurrentMap helper and getMetaData body added in #3082 were identical in Players and Island.

This moves the helper to a static method on MetaDataAble, which both classes implement, and has both call it. No behaviour change.

  • PlayersTest, IslandTest, UserTest: all pass.

🤖 Generated with Claude Code

SonarCloud flagged the toConcurrentMap helper and getMetaData body
added in #3082 as a duplicated block across Players and Island. Move
the helper to a static method on MetaDataAble so there is one copy,
and have both implementations call it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit 9e45e38 into develop Sep 19, 2026
3 checks passed
@tastybento
tastybento deleted the fix/metadata-helper-dedupe branch September 19, 2026 19:37
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.

1 participant