Skip to content

Simplify getXmlString() to use ByteArrayOutputStream.toString()#368

Merged
gilleain merged 2 commits intomainfrom
fix/morf-75-replace-to-byte-array
Feb 26, 2026
Merged

Simplify getXmlString() to use ByteArrayOutputStream.toString()#368
gilleain merged 2 commits intomainfrom
fix/morf-75-replace-to-byte-array

Conversation

@michal-morzywolek
Copy link
Copy Markdown
Contributor

Summary

  • Replace new String(toByteArray()) with toString() in DummyXmlOutputStreamProvider
  • Applied to both morf-core (test) and morf-testsupport (main)
  • Both use platform's default charset; no functional change, just cleaner code

Test plan

  • All project tests pass (mvn test)

🤖 Generated with Claude Code

Your Name and others added 2 commits January 30, 2026 21:14
Replace new String(toByteArray()) with toString() for cleaner code.
Both use the platform's default charset; no functional change.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace new String(toByteArray()) with toString() for cleaner code.
Both use the platform's default charset; no functional change.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@michal-morzywolek
Copy link
Copy Markdown
Contributor Author

Hi @michalradziwon, my first claude commit. super basic. please approve

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@BrunoSMonteiro74 BrunoSMonteiro74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small change improvement

@gilleain gilleain merged commit 43df074 into main Feb 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants