Skip to content

Conversation

hduelme
Copy link
Contributor

@hduelme hduelme commented Jan 25, 2023

Converting from an ByteArrayOutputStream to String by using new String(output.toByteArray()) creates an unnecessary copy of the data. So toString() should be used instead. Also it is easier to read.

@gregturn gregturn changed the title better conversion from ByteArrayOutputStream to String Better conversion from ByteArrayOutputStream to String. Feb 6, 2023
@gregturn gregturn self-assigned this Feb 6, 2023
@gregturn gregturn added the type: enhancement A general enhancement label Feb 6, 2023
@gregturn gregturn added this to the 4.0.2 milestone Feb 6, 2023
@gregturn gregturn closed this in 1b6fb7d Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants