|
Fix Jackson version conflict and token-expiry edge case
pom.xml pinned jackson-databind to 2.9.9, which Maven's nearest-wins mediation preferred over the 2.13.0 jackson-core/databind that json-utils's bundled CSV/YAML/TOML/XML modules actually require. That mismatch caused JsonUtils's static initializer to throw NoClassDefFoundError (missing TSFBuilder, added in jackson-core 2.10) on certain build/cache states, cascading into every test that touches JsonUtils. Bumped jackson-databind to 2.13.0 to match. Also fixes a token-cache edge case in FedexApi: the expiry check used a strict isAfter(), so a token with expiresIn <= the refresh buffer (ttl rounds to 0) could be treated as still valid on an immediate follow-up call, intermittently skipping the refresh. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
|---|
|
|
| pom.xml |
|---|
| src/main/java/io/ljunggren/fedex/api/FedexApi.java |
|---|