Bug #106981 Contribution: [PATCH] Remove superfluous use of boxing
Submitted: 11 Apr 2022 14:17 Modified: 20 Dec 2022 20:38
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
Category:Connector / J Severity:S3 (Non-critical)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[11 Apr 2022 14:17] OCA Admin
This bug tracks a contribution by Andrey Turbanov (Github user: turbanoff) as described in http://github.com/mysql/mysql-connector-j/pull/77

How to repeat:
See description

Suggested fix:
See contribution code attached
[11 Apr 2022 14:17] OCA Admin
Contribution submitted via Github - [PATCH] Remove superfluous use of boxing 
(*) Contribution by Andrey Turbanov (Github turbanoff, mysql-connector-j/pull/77#issuecomment-1094850810): 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_905694879.txt (text/plain), 6.53 KiB.

[11 Apr 2022 15:59] MySQL Verification Team
Hello Andrey Turbanov,

Thank you for the report and contribution.

[20 Dec 2022 20:38] Daniel So
Posted by developer:
Added the following entry to the C/J 8.0.32 changelog: 

"Calls of the valueOf() method of the native types' wrapper classes have been replaced by the corresponding parse[Type]() methods in order to avoid unnecessary boxing. Thanks to Andrey Turbanov for contributing to the patch."