Skip to content

Fix copy-on-write consistency in updateProperties isText path#834

Merged
cowtowncoder merged 2 commits into3.xfrom
tatu-claude/3.2/fix-istext-copy-on-write
Mar 25, 2026
Merged

Fix copy-on-write consistency in updateProperties isText path#834
cowtowncoder merged 2 commits into3.xfrom
tatu-claude/3.2/fix-istext-copy-on-write

Conversation

@cowtowncoder
Copy link
Copy Markdown
Member

Summary

  • The isText rename path in XmlBeanDeserializerModifier#updateProperties was mutating the original propDefs list directly via set(), while the wrapper name path correctly used copy-on-write (new ArrayList<>(propDefs) on first mutation)
  • Apply the same copy-on-write guard for consistency and correctness

Test plan

  • All existing tests pass (mvn test)

🤖 Generated with Claude Code

…operties

The isText rename path was mutating the original propDefs list directly,
while the wrapper name path correctly used copy-on-write. Apply the same
pattern for consistency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

🧪 Code Coverage Report

Metric Coverage Change
Instructions coverage 71.93% 📈 +0.020%
Branches branches 66.63% 📉 -0.020%

Coverage data generated from JaCoCo test results

@cowtowncoder cowtowncoder merged commit 597a043 into 3.x Mar 25, 2026
3 checks passed
@cowtowncoder cowtowncoder deleted the tatu-claude/3.2/fix-istext-copy-on-write branch March 25, 2026 02:24
@github-actions
Copy link
Copy Markdown

🧪 Code Coverage Report

Metric Coverage Change
Instructions coverage 71.93% 📈 +0.020%
Branches branches 66.63% 📉 -0.020%

Coverage data generated from JaCoCo test results

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