[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. |