Bug #113599 Contribution: Replace StringBuffer with StringBuilder in ValueEncoders
Submitted: 9 Jan 2024 20:48 Modified: 8 Apr 2024 22:35
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:8.x OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[9 Jan 2024 20:48] OCA Admin
Description:
This bug tracks a contribution by Henning Pöttker (Github user: hpoettker) as described in http://github.com/mysql/mysql-connector-j/pull/102

How to repeat:
See description

Suggested fix:
See contribution code attached
[9 Jan 2024 20:48] OCA Admin
Contribution submitted via Github - Replace StringBuffer with StringBuilder in ValueEncoders 
(*) Contribution by Henning Pöttker (Github hpoettker, mysql-connector-j/pull/102#issuecomment-1879867479): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_1667534376.txt (text/plain), 8.23 KiB.

[10 Jan 2024 5:55] MySQL Verification Team
Hello Henning,

Thank you for the report and contribution.

regards,
Umesh
[8 Apr 2024 22:35] Daniel So
Posted by developer:
 
Added the following entry to the C/J 8.4.0 changelog: 

"All StringBuffers in the implementations of ValueEncoder have been replaced by StringBuilders to improve code performance, as synchronization for the string values are not required. Thanks to Henning Pöttker for contributing to this patch."