[CONJ-1116] Avoid unnecessary synchronization on calendar when no calendar parameter Created: 2023-10-23  Updated: 2023-10-25  Resolved: 2023-10-25

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: None
Fix Version/s: 3.3.0

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

When encoding/decoding timestamp/time/date value, value is enclosed in a synchronized block to ensure not having race condition when using parameterized calendar.

When no java.util.Calendar object is provided to constructing the time, this synchronized block is useless.


Generated at Thu Feb 08 03:20:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.